Class: Eventable::CategorylistsController

Inherits:
EventableController show all
Defined in:
app/controllers/eventable/categorylists_controller.rb

Instance Method Summary collapse

Instance Method Details

#updateObject



6
7
8
9
10
11
12
13
14
15
16
17
# File 'app/controllers/eventable/categorylists_controller.rb', line 6

def update
  if @categorylist.update_attributes(params[:eventable_categorylist])
    try_after_callback do
      flash[:notice] = 'Categories were successfully updated.'
      redirect_to(eventable_event_categorylist_path(@event))
    end
  else
    try_after_callback :fail do
      render :action => "edit"
    end
  end
end