Ruby on Rails Monday, June 5, 2017

my index action is looking for params[:club][:genre_id]
after a club is successfully added or updated i wanna pass those (nested) params back to my index action so my filter will be set to the right genre_id but clubs_path(:genre_id => @genre_id) after setting @genre_id = params[:club][:genre_id] doesn't work the index page loads without a genre_id set

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8dc82eee-1301-4fbc-818b-2bd57984c8dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment