Is it possible to pass 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')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With