2013-01-07 09:04:09 +01:00
|
|
|
class HomeController < ApplicationController
|
2014-07-08 09:14:16 +02:00
|
|
|
before_filter :respond_to_options
|
2014-08-12 11:51:59 +03:00
|
|
|
skip_authorization_check
|
2014-07-08 09:14:16 +02:00
|
|
|
|
2013-01-07 09:04:09 +01:00
|
|
|
def index
|
|
|
|
|
@today = Date.current
|
2014-08-18 21:54:43 +03:00
|
|
|
@current = Conference.where('end_date >= ?', @today).order('start_date ASC')
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|
2014-07-08 09:14:16 +02:00
|
|
|
|
|
|
|
|
def respond_to_options
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html { head :ok }
|
|
|
|
|
end if request.options?
|
|
|
|
|
end
|
2013-01-07 09:04:09 +01:00
|
|
|
end
|