Sha256: 023367a26410d84ff7d7c7b0c3c7b3074f49b500d53988086b961c33c51df813
Contents?: true
Size: 735 Bytes
Versions: 22
Compression:
Stored size: 735 Bytes
Contents
<%%= simple_form_for(<% if class_name.split('::').count > 1 %> ['<%= class_name.split('::').first.underscore.downcase %>', @<%= class_name.split('::').last.underscore.downcase %>]<% else %>@<%= class_name.split('::').last.underscore.downcase %> <% end %>, :html => {:class => 'form-horizontal' }) do |f| %> <%%= f.error_notification %> <div class="form-inputs"> <% for attribute in class_name.split('::').last.constantize.columns -%> <% if attribute.name != "id" && attribute.name !="created_at" && attribute.name !="updated_at" %> <%%= f.input :<%= attribute.name %> %> <% end -%> <% end -%> </div> <div class="form-actions"> <%%= f.button :submit, class: 'button button-primary' %> </div> <%% end %>
Version data entries
22 entries across 22 versions & 1 rubygems