Class: EventCategoriesController
- Inherits:
-
InheritedResources::Base
- Object
- InheritedResources::Base
- EventCategoriesController
- Defined in:
- app/controllers/event_categories_controller.rb
Instance Method Summary collapse
Instance Method Details
#index ⇒ Object
14 15 16 |
# File 'app/controllers/event_categories_controller.rb', line 14 def index @event_categories = @event_categories.page(params[:page]) end |
#update ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/controllers/event_categories_controller.rb', line 5 def update @event_category = EventCategory.find(params[:id]) if params[:move] move_position(@event_category, params[:move]) return end update! end |