Class: Calagator::SiteController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Calagator::SiteController
- Defined in:
- app/controllers/calagator/site_controller.rb
Instance Method Summary collapse
-
#about ⇒ Object
Displays the about page.
- #defunct ⇒ Object
-
#hello ⇒ Object
Render something to help benchmark stack without the views.
- #index ⇒ Object
-
#omfg ⇒ Object
Raise exception, mostly for confirming that exception_notification works.
- #opensearch ⇒ Object
Instance Method Details
#about ⇒ Object
Displays the about page.
23 |
# File 'app/controllers/calagator/site_controller.rb', line 23 def about; end |
#defunct ⇒ Object
31 32 33 34 |
# File 'app/controllers/calagator/site_controller.rb', line 31 def defunct @url = params[:url] raise ArgumentError if /^javascript:/.match(@url) end |
#hello ⇒ Object
Render something to help benchmark stack without the views
10 11 12 |
# File 'app/controllers/calagator/site_controller.rb', line 10 def hello render :text => "hello" end |
#index ⇒ Object
14 15 16 17 18 19 20 |
# File 'app/controllers/calagator/site_controller.rb', line 14 def index @overview = Event::Overview.new respond_to do |format| format.html { } format.any { redirect_to events_path(format: params[:format]) } end end |
#omfg ⇒ Object
Raise exception, mostly for confirming that exception_notification works
5 6 7 |
# File 'app/controllers/calagator/site_controller.rb', line 5 def omfg raise ArgumentError, "OMFG" end |
#opensearch ⇒ Object
25 26 27 28 29 |
# File 'app/controllers/calagator/site_controller.rb', line 25 def opensearch respond_to do |format| format.xml { render :content_type => 'application/opensearchdescription+xml' } end end |