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

Version Path
inline_forms-0.9.24 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.23 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.22 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.21 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.20 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.19 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.18 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.17 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.16 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.15 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.14 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.13 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.12 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.11 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.10 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.9 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.8 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.7 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.6 app/views/inline_forms/_edit.html.erb
inline_forms-0.9.5 app/views/inline_forms/_edit.html.erb