vendredi 20 novembre 2015

How to get email(having '+') from URL in Parameters in Ruby

When I hit the page /login?email=abc+dev@xyz.com In Ruby's Controller, The Parameters are: {"email"=>"abc dev@xyz.com"}

'+' is missing in this parmas. What is the correct way to get email in parameters ? encode URI will give me same(that is, URI::encode("abc+dev@xyz.com") is equals to "abc+dev@xyz.com")

Aucun commentaire:

Enregistrer un commentaire