Sha256: c4065ab016029dfe3c32e3706064f5350f752fbef59f39df712b57ff22aec498

Contents?: true

Size: 644 Bytes

Versions: 5

Compression:

Stored size: 644 Bytes

Contents

<%% @page_title = "Edit <%= singular_name.humanize.downcase %>" %>
<h2>Edit <%= singular_name.humanize.downcase %> - <%%= link_to 'Show <%= singular_name.humanize.downcase %>', admin_<%= singular_name %>_path(@<%= singular_name %>) %></h2>

<%% form_for(:<%= singular_name %>, :url => admin_<%= singular_name %>_path(@<%= singular_name %>), :html => { :method => :put }) do |f| %>
<%%= f.error_messages %>

<p>Please complete all fields marked <span class="required">*</span></p>

<%%= render :partial => 'form', :locals => {:f => f} %>
  
<p>
<%%= f.submit "Update <%= singular_name.humanize.downcase %>", :class => "create" %>
</p>
<%% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
shoulda_machinist_generator-0.4.4 rails_generators/shoulda_machinist_admin_scaffold/templates/admin/view_edit.html.erb
shoulda_machinist_generator-0.4.3 rails_generators/shoulda_machinist_admin_scaffold/templates/admin/view_edit.html.erb
shoulda_machinist_generator-0.4.2 rails_generators/shoulda_machinist_admin_scaffold/templates/admin/view_edit.html.erb
shoulda_machinist_generator-0.4.1 rails_generators/shoulda_machinist_admin_scaffold/templates/admin/view_edit.html.erb
shoulda_machinist_generator-0.4.0 rails_generators/shoulda_machinist_admin_scaffold/templates/admin/view_edit.html.erb