Sha256: baa39fee349ede7c1f3496ff597fea87456c09c8c23808b2918e743ef1457e23
Contents?: true
Size: 922 Bytes
Versions: 103
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
103 entries across 103 versions & 1 rubygems