Class: ActualitiesController

Inherits:
Forgeos::ApplicationController
  • Object
show all
Defined in:
app/controllers/actualities_controller.rb

Instance Method Summary collapse

Instance Method Details

#rssObject



3
4
5
6
7
8
9
# File 'app/controllers/actualities_controller.rb', line 3

def rss
  @actualities = Actuality.find_all_by_active(true, :limit => 20, :order => 'created_at DESC')
  @feed_title = 'Feed title'
  @feed_description = 'Feed description'
  @locale = 'fr-fr'
  response.headers['Content-Type'] = 'application/rss+xml'
end