Sha256: cb196b13cdc344253197b2cfc348a144949bf7a4eeccaa58dc294c40399f22e3
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
module AboutPage class AboutController < ApplicationController before_filter :only => :index do AboutPage.configuration.preflight(request) end def index @configuration = AboutPage.configuration AboutPage.configuration.set_headers!(response) respond_to do |format| format.html { render :status => @configuration.ok? ? 200 : 417 } # about_page.html.erb format.json { render :json => @configuration.to_json } format.xml { render :xml => @configuration.to_xml } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
about_page-0.0.1 | app/controllers/about_page/about_controller.rb |