hi all,

   I am converting my view into HAML format i have done it with
"Html2Haml" command, then I removed all the "- end" from haml code and
my indentation is also correct,but now  it shows following errors
 I have kept code of show.html.erb and show.html.haml in attachment.

please help me I am not getting what exactly the error is?

compile error D:/aflatune/app/views/tracks/show.html.haml:33: syntax
error, unexpected tCONSTANT, expecting ')' _hamlout.open_tag("a", false,
false, false, false, {"class"=>"ActionLink"}, false, false, nil, nil,
:href => "#", :onclick => "if(confirm("Are you sure you want to delete
this track and associated media file?"))
showPane(parseLocation("#{track_path}"),true,false,true,"delete");return
false;" );
^ D:/aflatune/app/views/tracks/show.html.haml:53: syntax error,
unexpected kELSIF, expecting kEND  elsif @content_type == :youtube;
^ D:/aflatune/app/views/tracks/show.html.haml:91: syntax error,
unexpected kELSIF, expecting kEND  elsif;       ^
D:/aflatune/app/views/tracks/show.html.haml:107: syntax error,
unexpected kENSURE, expecting kEND
D:/aflatune/app/views/tracks/show.html.haml:109: syntax error,
unexpected $end, expecting kEND

Attachments:
http://www.ruby-forum.com/attachment/3575/html_and_haml_file.txt

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to