I want to do the following:  :ruby
    form_remote_for :portion, Portion.new, :url=> new_portion_url,
      :loading=> 'Form.disable("portion_form")',
      :complete=> 'Form.enable("portion_form")',
      :html=> {:id=> 'portion_form' } do |f|
    .meal_type{:style=>"float: left;"}

e.g. have my form_remote_for on multiple lines. However, I need to indent
the following line (meal_type), and I'm not sure how to do it.

The other option:
    - form_remote_for :portion, Portion.new, :url=> new_portion_url,
    -  :loading=> 'Form.disable("portion_form")',
    -  :complete=> 'Form.enable("portion_form")',
    -  :html=> {:id=> 'portion_form' } do |f|

Didn't work either due to ";" being added after each line.

Any suggestions?

Thanks,
Nick

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to