Skip to main content
Is anyone using Rails 5 yet?
Rails Solved • Asked by Alan Reid
The setup guides on the site recommend using Rails 4.2.6. I'm curious to know if we should be using Rails 5 now as it's been out for almost a month? Cheers
7
posts

What to use for multistep(wizards) in 2016?
General Solved • Asked by Sean M
Hey Chris, As of July 2016 what gem/solution would you use to create multistep forms? I have found a couple of solutions but couldn't decide what to choose. They kinda seemed a bit obsolete. It'...
2
posts

Is it possible to manually mark as watched an episode?
General Solved • Asked by Vincent Robert
Hi Chris. Would it be possible to add a feature on GoRails in order to manually "mark as watched" an episode? When I randomly select an episode to watch, I would like to list only those that I ha...
2
posts

How to I use Refile as Upload in a polymorphic way? I have managed to use it that way but i am struggling on destroy image after uploading
General Solved • Asked by Aniket Rao
Here is the Schema for Uploads ```ruby create_table "uploads", force: :cascade do |t| t.string "file" t.string "file_id" t.string "file_filename" t.integer "file_si...
2
posts

How to link the liked posts by each user?
General Solved • Asked by Lauro
I just finished with the [Liking Posts](https://gorails.com/episodes/liking-posts?autoplay=1) screencast. All good. I managed to create a User Profile. And now I'm trying to display the liked post...
4
posts

Setting up “Next post” and “Previous post”
General Solved • Asked by Lauro
In my blog application I want to have a **"Previous post"** link and a **"Next post"** link in the bottom of my show view. But I'm having a hard time getting it to work. What am I missing? **Th...
3
posts

Calling function from handling click event issue
General Solved • Asked by Michael Derzhavets
Hi Everyone Using the UJS approach Chis showed in the NavBar notifications screencasts, I'm trying to implement something similar, and having very strange issue that I can't even imagine what's ...
9
posts

rails + DB dependent destroy vs cascade delete
General Solved • Asked by Sean M
Hi, I wanna make sure that child objects also gets deleted when deleting parent. I'd like to use both `dependent: :destroy` (rails side) and `on_delete: :cascaade` (db side). Is this a good ...
4
posts

How can I solve it?
General Solved • Asked by Federico Calarco
Hello guys I have a problem with this! I'm making my website where user can give feedback to my projects, contact me and make comment to a blog_post. The problem is when i make the render 'blo...
11
posts

Limit CSV export by Day, Week and Month
General Solved • Asked by Sascha M.
Hi there, is there an easy way to limit the results inside a CSV export to a specific time-frame, like day, week and month? Thanks!
2
posts

How do I include a placeholder for empty notifications
General Solved • Asked by Stan Smith
Your In-App Notification code worked perfectly. However I'm stuck on what code to use to display a placeholder message if there aren't any notifications. You mentioned this briefly in the episo...
3
posts

How do i update an attribute for belongs_to association when scraping a site?
General Solved • Asked by Wesly Mezarina
So pretty much a `anime` belongs_to :season and a `season` has_many :animes. I'm scraping a site and i'm collecting the season like "Spring 2015". I want to be able to assign "Spring 2015" to a an...
6
posts

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

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

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

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

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.