It seems that we will need 2 methods, one is CGI.escape
and the other might be h
(unless we hardcode &
.
Is there a method that takes an array or hash of params, and compose it into this form?
src="foo.php?href=http%3A%2F%2Fexample.com%2F&layout=standard"
It is for Rails 2.2.2, so if there is a method in Rails 2.x that can do it?