Sha256: 481a472d196191488753eebaf6f5396fe31d3224f965e482925c01a861a282a8
Contents?: true
Size: 762 Bytes
Versions: 1
Compression:
Stored size: 762 Bytes
Contents
<%%= f.error_messages %> <% for attribute in attributes -%> <p> <%%= f.label :<%= attribute.name %> %><br /> <%%= f.<%= attribute.field_type %> :<%= attribute.name %> %> </p> <% end -%> <% has_many_through_models.each do |hmt_model| -%> <div id='<%= hmt_model.through_model.name.underscore %>_children'> <%% f.fields_for :<%= hmt_model.through_model.name.underscore.pluralize %> do |<%= hmt_model.through_model.name.underscore %>_form| %> <%%= render :partial => '<%= hmt_model.through_model.name.underscore %>', :locals => { :f => <%= hmt_model.through_model.name.underscore %>_form } %> <%% end %> </div> <p> <%%= add_child_link 'Add <%= hmt_model.through_model.name %>', '<%= hmt_model.through_model.name.underscore %>', f %> </p> <% end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
view_mapper-0.3.4 | lib/view_mapper/views/has_many_existing/templates/view_form.html.erb |