Browse Source

Paramètre rajouté au flux rss

recurrent
echarp 9 years ago
parent
commit
21635d2ca4
  1. 7
      app/controllers/events_controller.rb

7
app/controllers/events_controller.rb

@ -6,9 +6,7 @@ class EventsController < InheritedResources::Base
if (params[:region] && params[:region].present? && params[:region] != 'all')
@events = @events.region(params[:region])
end
if (params[:tag])
@events = @events.tag(params[:tag])
end
@events = @events.tag(params[:tag]) if (params[:tag])
respond_to do |format|
format.html {
@ -21,7 +19,8 @@ class EventsController < InheritedResources::Base
}
format.rss {
@events = @events.future.limit(25)
@events = @events.future
@events = @events.limit params[:daylimit] if params[:daylimit]
}
end
end

Loading…
Cancel
Save