Class Admin::EventLocationsController
In: app/controllers/admin/event_locations_controller.rb
Parent: Admin::BaseController

Methods

create   edit   index   new   show   update  

Public Instance methods

[Source]

    # File app/controllers/admin/event_locations_controller.rb, line 19
19:   def create
20:     @location = EventLocation.new(params[:event_location])
21:     if @location.save
22:       flash[:notice] = "El nuevo emplazamiento se ha guardado correctamente"
23:       redirect_to admin_event_location_path(@location)
24:     else
25:       render :action => :new
26:     end
27:   end

[Source]

    # File app/controllers/admin/event_locations_controller.rb, line 16
16:   def edit
17:   end

[Source]

   # File app/controllers/admin/event_locations_controller.rb, line 5
5:   def index
6:     @locations = EventLocation.find(:all)
7:   end

[Source]

    # File app/controllers/admin/event_locations_controller.rb, line 9
 9:   def new
10:     @location = EventLocation.new()
11:   end

[Source]

    # File app/controllers/admin/event_locations_controller.rb, line 13
13:   def show
14:   end

[Source]

    # File app/controllers/admin/event_locations_controller.rb, line 29
29:   def update
30:     if @location.update_attributes(params[:event_location])
31:       flash[:notice] = "El emplazamiento se ha guardado correctamente"
32:       redirect_to admin_event_location_path(@location)
33:     else
34:       render :action => :edit
35:     end
36:   end

[Validate]