parent
53a30439ca
commit
61f913b727
3 changed files with 41 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue