Sha256: 8a73d9cb102e6b5d37521bb1f599df571855ab6863ed679a6f4767a1f5f5cfe9
Contents?: true
Size: 923 Bytes
Versions: 60
Compression:
Stored size: 923 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
60 entries across 60 versions & 1 rubygems