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

Version Path
inline_forms-1.6.41 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.40 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.39 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.38 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.37 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.36 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.35 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.23 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.22 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.21 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.2 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.1 lib/app/views/inline_forms/_edit.html.erb
inline_forms-2.0 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.33 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.32 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.31 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.30 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.29 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.28 lib/app/views/inline_forms/_edit.html.erb
inline_forms-1.6.27 lib/app/views/inline_forms/_edit.html.erb