Sha256: 19281125f25a44ec5bc22b82cd201bdaa312eb67528fb9629d4bb7ba5aceab32
Contents?: true
Size: 831 Bytes
Versions: 9
Compression:
Stored size: 831 Bytes
Contents
<%%# Uses rails_bootstrap_form gem. API at: https://github.com/bootstrap-ruby/rails-bootstrap-forms %> <%%= bootstrap_form_for(<%= singular_table_name %>) do |f| %> <%%= f.alert_message "Please fix the errors below." %> <% attributes.each do |attribute| -%> <% if attribute.password_digest? -%> <%%= f.password_field :password %> <%%= f.password_field :password_confirmation %> <% else -%> <%%= f.<%= attribute.field_type %> :<%= attribute.column_name %> %> <% end -%> <% end -%> <%%= f.submit 'Save', class: 'btn btn-primary' %> <%%= f.button 'Reset', type: :reset, class: 'btn btn-default' %> <hr> <%%= link_to 'Back', <%= index_helper %>_path, class: 'btn btn-default' %> <%%= link_to 'Show', <%= singular_table_name %>, class: 'btn btn-primary' unless <%= singular_table_name %>.new_record? %> <%% end %>
Version data entries
9 entries across 9 versions & 1 rubygems