Sha256: 4803c9fc00d8ed6d96c917f6b6d618fbc819789cc424055e3be0762cbc32dc4b

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

<h1>Editing product</h1>

  <%
    form = amrita_define_form(
             :product,
             @product,
             :url=>{:action=>:update, :id=>@product}
             ) do |f|
      f.text_field :title
      f.text_area :description
      f.text_field :image_url
      f.text_field :price
      f.add_field_element :submit, submit_tag("Update")
    end
  %>

  << :form | AcceptData[:hook] <
    %= render :partial => 'form', :object=>$_

<%= link_to 'Show', :action => 'show', :id => @product %> |
<%= link_to 'Back', :action => 'list' %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amrita2-2.0.2 sample/depot/app/views/admin/edit.html.a2