Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do Rails controllers URL unencode params for me?

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)

like image 796
John Bachir Avatar asked Oct 26 '10 05:10

John Bachir


1 Answers

Yes, Rails will automatically decode GET and POST values for you.

like image 52
Jordan Running Avatar answered Nov 05 '22 08:11

Jordan Running