lib/generators/mdwa/templates/templates/scaffold/views/_form_fields.html.erb in mdd-3.0.13 vs lib/generators/mdwa/templates/templates/scaffold/views/_form_fields.html.erb in mdd-3.0.14

- old
+ new

@@ -1,6 +1,6 @@ ===entity_code=== -<%- @model.attributes.each do |attr| -%> +<%- @model.attributes.select{|a| a.name != 'id' and a.name != 'created_at' and a.name != 'updated_at'}.each do |attr| -%> <div class="field"> <%%= f.label :<%= attr.name %> %> <%- if attr.type.to_sym == :file -%> <%% unless @<%= @model.singular_name %>.new_record? %> <span><%%= link_to image_tag(file_icon_path(@<%= @model.singular_name %>.<%= attr.name %>_file_name)), @<%= @model.singular_name %>.<%= attr.name %>.url, :target => '_blank' %></span> \ No newline at end of file