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
You can use for models, controllers, etc.
puts YAML::dump(params)
Source: Ruby / Rails alternative to PHP print_r() and var_dump()
For views:
DebugHelper’s debug(object)
In your case:
DebugHelper’s debug(params)