I'm reading thru Ajax on Rails and trying to convert Scott Raymond's
RHTML to Haml. Everything was going well until I got to:
<%= link_to_remote "Check Time",
:update => 'current_time',
:url => {:action => 'get_time'},
:before => "$('indicator').show()",
:success => "$('current_time').visualEffect('highlight')",
:failure => "alert('There was an error. ')",
:complete => "$('indicator').hide()" %>
which I attempted to render as:
= link_to_remote "Check Time", |
:update => 'current_time', |
:url => {:action => 'get_time'}, |
:before => "$('indicator').show()", |
:success => "$('current_time').visualEffect('hightlight')", |
:complete => "$('indicator').hide()"
when I hit that page I get:
(eval):12:in `compile': compile error
(eval):7: parse error, unexpected '\n', expecting tASSOC
I've tried various permutations but without success.
Is this a bug or am I, being new to Haml, doing something wrong?
Thanks ... WkH
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---