Sha256: 86037f182fdf7272aac04c43da375e88b64e41facfe706c841d0a1d1c2b01fe2

Contents?: true

Size: 472 Bytes

Versions: 1

Compression:

Stored size: 472 Bytes

Contents

<%% if @<%= singular_name %>.editable_by?(current_user) %>
<h1>Editing <%= singular_name.titleize %></h1>

<%%= error_messages_for :<%= singular_name %> %>

<%% form_for(:<%= singular_name %>, :url => object_url, :html => { :method => :put }) do |f| %>
<%%= render(:partial => "form", :locals => {:f => f}) %>
  <p>
    <%%=submit_tag "Update"%>
  </p>
<%% end %>

<br/>

<%%= safe_show_link(@<%= singular_name %>) %>
<%% end %> | 
<%%= link_to 'Back', collection_url %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
nileshtrivedi-lp_resource_builder-0.5.1 generators/scaffold_resource/templates/view_partial_edit.html.erb