Sha256: 918faf7867f043f0fcceeb497b751b62aba86816cac60ea06060ba3cac65f96f

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

class ActualitiesController < Forgeos::ApplicationController

  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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
forgeos_cms-1.9.4 app/controllers/actualities_controller.rb
forgeos_cms-1.9.2 app/controllers/actualities_controller.rb
forgeos_cms-1.9.1 app/controllers/actualities_controller.rb
forgeos_cms-1.9.0 app/controllers/actualities_controller.rb