Class: WidgetsController

Inherits:
AuthorizableController
  • Object
show all
Defined in:
app/controllers/widgets_controller.rb

Instance Method Summary collapse

Instance Method Details

#loadObject



5
6
# File 'app/controllers/widgets_controller.rb', line 5

def load
end

#saveObject



8
9
10
11
12
13
# File 'app/controllers/widgets_controller.rb', line 8

def save
  @widget.attributes = params[:widget]
  if @widget.save
    #success
  end
end