- if something
  = simple_form_for [@company, @legal_representative], :remote => true
do |f|
    = render 'shared/error_messages', :object =>
@legal_representative
    = field_set_tag t('legal_representative') do
      = f.text_field etc.

- else
  = simple_form_for @legal_representative] do |f|
    = render 'shared/error_messages', :object =>
@legal_representative
    = field_set_tag t('legal_representative') do
      = f.text_field etc

-- 
You received this message because you are subscribed to the Google Groups 
"Haml" group.
To post to this group, send email to haml@googlegroups.com.
To unsubscribe from this group, send email to haml+unsubscr...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/haml?hl=en.

Reply via email to