Here's the HAML script I have
############################
- form_for :info, @info, :url => {:action => "edit"} do |f|
%p
= f.label :name, "Name"
\:
= f.text_field :name
%p
Gender:
%label{ :for => "info_gender_0" }
= f.radio_button :gender, 0
Male
%label{ :for => "info_gender_1" }
= f.radio_button :gender, 1
Female
%p
= f.label :location, "Place"
\:
= f.text_field :location
%p
= f.label :job, "Work"
\:
= f.text_field :job
%p
= f.submit "Submit now!"
#########################
I'm sure I don't need "-end", so the problem seems to be exist in the
first line. I put "do" but don't put "end".
I get:
compile error
syntax error, unexpected $end, expecting kEND
Any help would be appreciated.
-J
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---