Rails: How do I print the request parameters?

后端 未结 8 1630
挽巷
挽巷 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:43

    pretty_print also can be useful, in ruby and rails apps both

    pp params
    

    pretty_print doc: http://ruby-doc.org/stdlib-2.1.0/libdoc/pp/rdoc/PP.html

提交回复
热议问题