Another interesting challenge as I tweak my custom generators:

<% for attribute in attributes -%>
<% if attribute.field_type == "text_area" -%>
~ <%= attribute.field_type %> :<%= attribute.name %>
<% else -%>
= f.<%= attribute.field_type %> :<%= attribute.name %>
<% end -%>
<% end -%>

The above condition is ignored and I can't figure out why. The idea is
to always have the tilde on my textarea helpers.


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