This project is archived and is in readonly mode.
Controller params should be accessible with both string and symbol?
Reported by avijayr (at gmail) | April 5th, 2009 @ 06:33 PM | in 2.x
Is there any particular reason that the controller (request) params are only accessible as strings? It would help a lot in development, if the params hash is a HashWithIndifferentAccess.
Comments and changes to this ticket
-
Rishav Rastogi April 10th, 2010 @ 11:55 PM
- Assigned user set to Ryan Bigg
We can do this. if you mean params[:user] or params["user"].
Incomplete. Seems invalid though
-
Ryan Bigg April 10th, 2010 @ 11:56 PM
- State changed from new to invalid
Yes, in all versions of Rails for as long as I recall params is a HashWithIndifferentAccess.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>