Rails: How do I print the request parameters?

后端 未结 8 1631
挽巷
挽巷 2020-12-13 06:11

I have a Rails 3 application and I want to print in the view the request parameters. How do I do it?

Edit:

The purpose is to see what is being sent in a Form

8条回答
  •  失恋的感觉
    2020-12-13 06:22

    Parameters are stored in the params hash. For example, if there was a title parameter, you could display it in your view using <%= params[:title] %>.

提交回复
热议问题