I'm new with rails. I have used the redirect_to
with params
in my action, but now I don't know how to show these params
to my view?
Try this variants:
redirect_to controller: 'thing', action: 'edit', id: 3, something: 'else'
redirect_to thing_path(@thing, foo: params[:foo])
Also, this link should be helpful for you.
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