Is it possible to 开发者_如何学Cpass url parameters with this type of redirect_to?
redirect_to contact_path(@contact), :show_family => 'yes'
I want a URL that results in:
/contacts/1?show_family=yes
Yes, just pass your query string parameters in to contact_path
:
redirect_to contact_path(@contact, :show_family => 'yes')
精彩评论