Sha256: 299ed7afba7b48551285cbafb650f070d97aca0a0e8f386294d65a39ad2dabc5

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

<h1>New product</h1>

  <%
    form = amrita_define_form(
             :product,
             @product,
             :url=>{:action=>:create }
           ) 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("Create")
    end
  %>

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

%= 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/new.html.a2