Json listing of events
This commit is contained in:
parent
a9981262c5
commit
4fa3170085
@ -13,7 +13,7 @@ class EventsController < ApplicationController
|
||||
def index
|
||||
respond_to do |format|
|
||||
format.html { render layout: 'iframe' if params[:iframe] }
|
||||
format.json {}
|
||||
format.json { @events = @events.future }
|
||||
format.rss { @events = @events.future }
|
||||
format.ics { @events = @events.last_year.includes :region }
|
||||
format.xml { @events = @events.includes :region }
|
||||
|
Loading…
Reference in New Issue
Block a user