passing variables with redirect_to action:

6 views
Skip to first unread message

fugee ohu

unread,
Jul 8, 2017, 2:47:47 PM7/8/17
to Ruby on Rails: Talk
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
Reply all
Reply to author
Forward
0 new messages