Sha256: 3c622c08bced58109998c17f7409313b3a3323277577d56f66e9a618a7fec1fe

Contents?: true

Size: 429 Bytes

Versions: 12

Compression:

Stored size: 429 Bytes

Contents

<h1>New <%= human_name.titleize %></h1>

<%%= form_tag(<%= plural_name %>_url, method: 'post') do %>

<% attributes.each do |attribute| -%>
  <div>
    <%%= label_tag :<%= attribute.name %> %><br />
    <%%= <%= attribute.field_type %>_tag :<%= attribute.name %><%= "?" if attribute.type == :boolean %> %>
  </div>

  <% end %>
  <div>
    <%%= submit_tag "Create <%= human_name.titleize %>", class: 'btn' %>
  </div>
<%% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
starter_generators-0.7.3 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.7.2 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.7.1 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.7.0 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.6.0 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.5.2 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.5.1 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.5.0 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.4.2 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.4.1 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.4.0 lib/generators/starter/resource/templates/bootstrapped/new.html.erb
starter_generators-0.3.1 lib/generators/starter/resource/templates/bootstrapped/new.html.erb