osem-fcy/app/controllers/home_controller.rb

16 lines
356 B
Ruby
Raw Normal View History

2013-01-07 09:04:09 +01:00
class HomeController < ApplicationController
before_filter :respond_to_options
2014-08-12 11:51:59 +03:00
skip_authorization_check
2013-01-07 09:04:09 +01:00
def index
@today = Date.current
@current = Conference.where('end_date >= ?', @today).order('start_date ASC')
2013-01-07 09:04:09 +01:00
end
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