- Softwrap mode:
- Toggle
Blob of app/controllers/events_controller.rb
(raw blob data)
| 1 | class EventsController < ApplicationController |
| 2 | def index |
| 3 | @events = Event.paginate(:all, :order => "events.created_at desc", |
| 4 | :page => params[:page], :include => [:user]) |
| 5 | @atom_auto_discovery_url = formatted_events_path(:atom) |
| 6 | |
| 7 | respond_to do |if_format_is| |
| 8 | if_format_is.html {} |
| 9 | if_format_is.atom {} |
| 10 | end |
| 11 | end |
| 12 | |
| 13 | end |
