I have an haml file with the code for a form.
The code is:

= simple_form_for [@company, @legal_representative], :remote => true
do |f|
  = render 'shared/error_messages', :object => @legal_representative

  = field_set_tag t('legal_representative') do

  .
  .
  .

I want to use the if command:

- if something
  = simple_form_for [@company, @legal_representative], :remote => true
do |f|
- else
  = simple_form_for @legal_representative] do |f|
    = render 'shared/error_messages', :object => @legal_representative

    = field_set_tag t('legal_representative') do

    .
    .
    .

But I have a syntax error.
How to use if else in a haml file?

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