Implements OPTIONS http verb for root path

close #294
This commit is contained in:
Chrisbr 2014-07-08 09:14:16 +02:00
parent 53a30439ca
commit 61f913b727
3 changed files with 41 additions and 2 deletions

View file

@ -1,6 +1,14 @@
class HomeController < ApplicationController
before_filter :respond_to_options
def index
@today = Date.current
@current = Conference.where("end_date >= ?", @today).order("start_date ASC")
end
def respond_to_options
respond_to do |format|
format.html { head :ok }
end if request.options?
end
end