Class: Quadro::WidgetsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/quadro/widgets_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for, #after_sign_out_path_for

Instance Method Details

#updateObject



9
10
11
12
13
14
15
16
17
# File 'app/controllers/quadro/widgets_controller.rb', line 9

def update
  if widget.update_attributes(params[:widget])
    flash[:notice] = t('flash.updated')
  else
    flash[:alert] = t('flash.not_updated')
  end

  respond_with widget
end