Ok, I've got an interesting problem. I cannot seem to get the link_to
with popup option working with HAML. I can get it to work exactly as
described in RHTML, but not in HAML. The code I'm using is:
=link_to 'click here.', {:action => 'voucher'}, :popup => ['voucher',
'height=500,width=800']
Instead of this inserting the relevant javascript as the RHTML does,
it inserts the following link:
http://localhost:3001/responses/voucher/1?popup=Voucher%2Fheight%3D500%2Cwidth%3D800.
It seems as if the :popup isn't being understood correctly in HAML, or
not being parsed correctly.
Can someone help me?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---