Sha256: 67dae98739cceff49076e94f3caef5104178d5f3558a1e03523bb6c89792015b
Contents?: true
Size: 922 Bytes
Versions: 26
Compression:
Stored size: 922 Bytes
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", :remote => true do -%> <div class="edit_form_field"> <%= send("#{@form_element}_edit", @object, @attribute) %> </div> <%= 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! :class => "edit_form_cancel", :remote => true ) do %> <input type="button" name="cancel" value="cancel" /> <% end %> <%= submit_tag "ok", :class => "edit_form_submit"-%> <div style="clear: both;"></div> <% end -%>
Version data entries
26 entries across 26 versions & 1 rubygems