Ruby on Rails Saturday, July 8, 2017

My index action looks for params[:team_id] It gets calls by url with the path "/pictures?team_id=5" I;m try to redirect back to index after create with this redirect to action

format.html { redirect_to action: "index", team_id: params[:imageable_id], notice: "The picture has been uploaded." }

But index action doesn't get the param team_id

--
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/47e91d1f-d6be-4da4-aa93-4a9795bd52e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment