redirect_to with params. How to pass them to my view?

ruby-on-rails, ruby-on-rails-3

Solution

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.

Problem

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?

Original source

Related problems