How do we pass parameters in redirect_to in rails?
I know we can pass id using this:
redirect_to :action => action_name,:id => 3
If I want to pass additional parameters like some form data how to achieve it?
EDIT:
For Ruby 2 syntax you have to update the snippet above to:
redirect_to action: action_name, id: 3
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…