Hi,
I've long thought that the format of URLs was:
http://somesite.com/some/hierarchy/pagename?*
param1=value1¶m2=value2¶m3=value3&...*
I'm using Rails 2.3.5. And when I write into an ERb template:
<a href="url_for(:controller => 'somecontroller', :action =>
'someaction', :foo => 'bar', :moo => 'cow')">Click me</a>
I get the rendered text:
<a href="/somecontroller/someaction?foo=bar&moo=cow">Click me</a>
That's pretty much what I expect. But in a Haml template I type in:
%a{:href => url_for(:controller => 'somecontroller', :action =>
'someaction', :foo => 'bar', :moo => 'cow')} Click me
and instead I get the ampersands escaped:
<a href="/somecontroller/someaction?foo=bar*&*moo=cow">Click me</a>
... it is *really* supposed to be this way?
-- Amy
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.