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

Version Path
tida_template-0.3.2 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.3.1 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.3.0 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.9 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.8 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.7 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.6 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.5 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.2 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.2.0 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.9 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.7 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.5 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.3 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.2 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.1.1 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.0.7 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.0.6 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.0.5 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb
tida_template-0.0.4 lib/generators/tida_template/templates/rails_templates/erb/scaffold/_form.html.erb