Class: Refinery::Calendar::EventsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Refinery::Calendar::EventsController
- Defined in:
- app/controllers/refinery/calendar/events_controller.rb
Instance Method Summary collapse
Instance Method Details
#archive ⇒ Object
20 21 22 23 |
# File 'app/controllers/refinery/calendar/events_controller.rb', line 20 def archive @events = Event.archive.order('refinery_calendar_events.from DESC') render :template => 'refinery/calendar/events/index' end |
#index ⇒ Object
4 5 6 7 8 9 10 |
# File 'app/controllers/refinery/calendar/events_controller.rb', line 4 def index @events = Event.upcoming.order('refinery_calendar_events.from DESC') # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @event in the line below: present(@page) end |
#show ⇒ Object
12 13 14 15 16 17 18 |
# File 'app/controllers/refinery/calendar/events_controller.rb', line 12 def show @event = Event.find(params[:id]) # you can use meta fields from your model instead (e.g. browser_title) # by swapping @page for @event in the line below: present(@page) end |