Do Rails controllers URL unencode params for me?
-
26-09-2019 - |
Question
If a url parameter comes in urlencoded, does rails decode it for me, or do I have to call CGI::unencode myself?
(I'm asking because I'm seeing what is I think inconsistent behavior, and may be a bug in either rails or rspec, but wanted to ask here first to get a sanity check)
Solution
Yes, Rails will automatically decode GET and POST values for you.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow