Module: ActiveScaffold::Actions::Update
- Defined in:
- lib/active_scaffold/actions/update.rb
Class Method Summary collapse
Instance Method Summary collapse
- #edit ⇒ Object
- #update ⇒ Object
-
#update_column ⇒ Object
for inline (inlist) editing.
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/active_scaffold/actions/update.rb', line 3 def self.included(base) base.before_filter :update_authorized_filter, :only => [:edit, :update] base.verify :method => [:post, :put], :only => :update, :redirect_to => { :action => :index } base.helper_method :update_refresh_list? end |
Instance Method Details
#edit ⇒ Object
11 12 13 14 |
# File 'lib/active_scaffold/actions/update.rb', line 11 def edit do_edit respond_to_action(:edit) end |
#update ⇒ Object
16 17 18 19 |
# File 'lib/active_scaffold/actions/update.rb', line 16 def update do_update respond_to_action(:update) end |
#update_column ⇒ Object
for inline (inlist) editing
22 23 24 25 |
# File 'lib/active_scaffold/actions/update.rb', line 22 def update_column do_update_column render :action => 'update_column', :locals => {:column_span_id => params[:editor_id] || params[:editorId]} end |