mirror of
https://github.com/openSUSE/osem.git
synced 2026-05-08 07:33:41 -04:00
15 lines
329 B
Ruby
15 lines
329 B
Ruby
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
|