Sha256: 8d3637214e44922d1f15f2248b2959afb211c43641d9468bbfe23f7ba995937f
Contents?: true
Size: 547 Bytes
Versions: 2
Compression:
Stored size: 547 Bytes
Contents
<h1>Editing <%= human_name.titleize %> #<%%= @<%= singular_table_name %>.id %></h1> <%%= form_tag(<%= singular_table_name %>_url(@<%= singular_table_name %>), method: 'put') do %> <% attributes.each do |attribute| -%> <div> <%%= label_tag :<%= attribute.name %> %><br /> <%%= <%= attribute.field_type %>_tag :<%= attribute.name %>, @<%= singular_table_name %>.<%= attribute.name %><%= "?" if attribute.type == :boolean %> %> </div> <% end %> <div> <%%= submit_tag "Update <%= human_name.titleize %>" %> </div> <%% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
starter_generators-0.4.0 | lib/generators/starter/resource/templates/edit.html.erb |
starter_generators-0.3.1 | lib/generators/starter/resource/templates/edit.html.erb |