Sha256: 781302a0dc3e66da39d094b76f2c233158366dff97c9e7b651f922e94eae3409

Contents?: true

Size: 792 Bytes

Versions: 10

Compression:

Stored size: 792 Bytes

Contents

module Calagator

class SiteController < Calagator::ApplicationController
  # Raise exception, mostly for confirming that exception_notification works
  def omfg
    raise ArgumentError, "OMFG"
  end

  # Render something to help benchmark stack without the views
  def hello
    render :text => "hello"
  end

  def index
    @overview = Event::Overview.new
    respond_to do |format|
      format.html { }
      format.any  { redirect_to events_path(format: params[:format]) }
    end
  end

  # Displays the about page.
  def about; end

  def opensearch
    respond_to do |format|
      format.xml { render :content_type => 'application/opensearchdescription+xml' }
    end
  end

  def defunct
    @url = params[:url]
    raise ArgumentError if /^javascript:/.match(@url)
  end
end

end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
calagator-1.0.0 app/controllers/calagator/site_controller.rb
grokus-1.0.0.9 app/controllers/calagator/site_controller.rb
grokus-1.0.0.8 app/controllers/calagator/site_controller.rb
grokus-1.0.0.7 app/controllers/calagator/site_controller.rb
grokus-1.0.0.6 app/controllers/calagator/site_controller.rb
grokus-1.0.0.5 app/controllers/calagator/site_controller.rb
grokus-1.0.0.3 app/controllers/calagator/site_controller.rb
grokus-1.0.0.2 app/controllers/calagator/site_controller.rb
grokus-1.0.0.1 app/controllers/calagator/site_controller.rb
calagator-1.0.0.rc3 app/controllers/calagator/site_controller.rb