Skip to main content
refactoring polymorphic actions
General • Asked by Sean M
Hi Chris! I implemented the notification system based on your video with the partials. Works perfectly. I've got some problem though when user wanna check out the notification. When he/she clicks ...
1
post

data consistency for invitation registration
General Solved • Asked by Sean M
Hey! At the moment I have a user and a product table and products are created by users. So the user can create his own product he is working on. User `has_many :products` and `product belongs_to...
10
posts

How to by pass a string that has '???????' when scraping for dates and turning the date into an integer?
General Solved • Asked by Wesly Mezarina
I'm scraping a anime information website. Right now, I'm trying to get the date going, but on some of the anime the date comes out as ???,??,????. I'm tying to figure out how to skip that or put so...
7
posts

Rails console hacks :)
Rails Solved • Asked by Sascha M.
Hi there, I need some help how to handle the rails console commands. I'm really stuck here.. I've recently added a new column (teams) to my Sales and Orders model. Both models containing the ...
3
posts

Dynamically Defined has_many with odd behavior
General • Asked by Chris Zempel
Here's a quirk that's confounding me: Data Model: ```ruby class Athlete < ApplicationRecord has_many :stats end class Stat < ApplicationRecord belongs_to :athlete belong...
5
posts

Can I 'alias' a Rails active model to another class
General Solved • Asked by Dan Tappin
First off I am sure I am not asking this question correctly as this is an advanced Rails topic over my head right now. Here is what I have for routes: concern :assetable do resources :...
10
posts

Testing your markdown
Testing Solved • Asked by Jay Killeen
I see your markdown tables aren't being rendered as tables. I have the same problem :( Any idea how we get this fixed? | Tables | Are | Cool | | ------------- |:-------------:...
4
posts

dymanic data filter with jquery
Javascript • Asked by John Munyi
Hi Chris I want to replace the create action of my app with dynamic jQuery data pulling so that user has a chance to see the data pulled from the DB before the actual create happens , so currently...
1
post

Save external data in rails db, data structures
General • Asked by Catalin B
Hello, I need some help/advise on how to save third data in my database, also I'm interested in any tutorial or info about these topic. I'm struggling to save data from third party api. I get...
1
post

Dynamic select boxes with Rails 4
Javascript • Asked by John Munyi
Hey there I am trying out a dynamic select box with rails 4 and I am stuck on where to put the js code because the form exists in a nested form. So should the code go in the js file for the form ac...
3
posts

How to use the Sentimental gem
Gems / Libraries Solved • Asked by Sascha M.
Hi there, I want to use the Sentimental gem to automatically check if an article is positive negative or neutral. This gem here: https://github.com/7compass/sentimental works fine in the Rails c...
9
posts

Opinion: Namespacing Areas of the Application
General • Asked by Chris Zempel
I'm working on an application related to a specific sport. A large deal of the value of the application revolves around being able to track different stats by player by position by season. There...
2
posts

Managed hosting
Servers • Asked by Beau O'Hara
Hi there, I am curious what others a doing for large scale managed hosting. Currently we managing our own AWS and I would like to hand those duties over to a 3rd party. I am looking at Heroku but...
5
posts

Dynamic Pricing based on user country
General Solved • Asked by Enrique Benitez
Hello! I'm thinking of a way to handle dynamic pricing on my web app based on the user country, for example: A user wants to subscribe for a pro account on my website and this user is based o...
3
posts

dealing with authorized parts in fragment caching
General Solved • Asked by Sean M
I have a facebook/disqus like news feed in my app. Every action handled via AJAX on the posts index page. I have hard time figuring out how to do the russian-doll-catching when there are authorized...
5
posts

Opinion: Destroy or not destroy
General • Asked by Dan Tappin
I am working on an app and I have already added the paper trail gem (https://github.com/airblade/paper_trail) to track revisions. Now I am thinking that I want to add Paranoia (https://github.com/...
4
posts

Loop through associated records and deliver as csv
General Solved • Asked by Sascha M.
Hi there, I've watched your CSV export episode and I'm using the exact same code to export the records to a CSV. I've got two tables: Orders and Sales. 1 Order has_many Sales and 1 Sale belon...
6
posts

Pointing a method to a namespace, class, or something (ruby question)
General • Asked by Chris Zempel
I'm building an API wrapper and struggling with how to set it up the way I'd like. Here's an example of what I'd ultimately like this to look like: ```ruby ServiceName::Client.new(api_key).reco...
3
posts

Nofications screen cast
Site Feedback • Asked by John Munyi
Hi Chris , I am following the notifications screen here : https://gorails.com/episodes/in-app-navbar-notifications?autoplay=1 all is well no errors but when i create a post the notifications a...
3
posts

Ajax refresh while persisting params
Javascript • Asked by shakycode
I'm maintaining an old Rails app and am trying to have a my index action use a form_tag to pass the params of a region so I can scope the results of calls by region. This works fine and dandy, but...
1
post

Subscribe to the newsletter

Join 27,623+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.