attrtastic icon indicating copy to clipboard operation
attrtastic copied to clipboard

generated html is invalid

Open dmitry-a-l opened this issue 15 years ago • 1 comments


  

will produce following output:

  • Namevalue
  • instead of expected output:
    1. Namevalue

    dmitry-a-l avatar Jul 19 '10 03:07 dmitry-a-l

    That's right. According to docs (and how it works in formtastic, because I created attrtastic to somehow mimic formtastic behavior) you should use:

    <% semantic_attributes_for @dossier do |attr| %>
      <% attr.attributes do %>
        <%= attr.attribute :title %>
      <% end %>
    <% end %>
    

    It's a bit burdensome to use it like this and your suggestion to simplify it is good. I'll try to implement it in a spare time

    MBO avatar Jul 28 '10 11:07 MBO