and in action “catchurl” in mycontroller.rb I would like to have
params[:url] to be
“somedomain.com”
I guess that one could do something smart with map.connect
but so far I have failed completely.
Is there anyone that can give me some help?
The problem is that the url given above is not valid - ? and & need to
be
escaped in
the parameter value. Browsers do this automatically behind the scenes,
and
then
Rails transforms the parameters back. It seems unclear why you’re having
this
problem - url_for automatically handles the encoding, and so do forms.
Hope this helps,
–
Matt J.
removed_email_address@domain.invalid
President/Technical Director, Acme Art Company (acmeartco.org)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.