Sha256: 2c65fca3c13754486ae29cb01f6fab599d44c07e620c3766fe9074223aef9f31
Contents?: true
Size: 1.05 KB
Versions: 14
Compression:
Stored size: 1.05 KB
Contents
<%= form_tag send(@object.class.to_s.underscore + '_path', :update => @update_span, :attribute => @attribute, :form_element => @form_element, :sub_id => @sub_id ), :method => :put, # this is going to the update method! :multipart => true, :class => "edit_form", :abide => true, :remote => true do -%> <div class="row collapse"> <div class="small-9 columns"> <%= send("#{@form_element}_edit", @object, @attribute) %> </div> <div class="small-1 columns"> <%= submit_tag "ok", :class => "postfix button"-%> </div> <div class="small-2 columns"> <%= link_to( send( @object.class.to_s.underscore + '_path', :update => @update_span || "field_#{@attribute}_#{@object.id.to_s}", :attribute => @attribute, :form_element => @form_element, :sub_id => @sub_id ), :method => :get, # this is going to the show method! :remote => true ) do %> <input type="button" name="cancel" value="cancel" class="button alert postfix radius" /> <% end %> </div> </div> <% end -%>
Version data entries
14 entries across 14 versions & 1 rubygems