Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A quick maintanance page at the front of a rails webapp
Ruby
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app/controllers/iron_gate
lib
README.rdoc
init.rb

README.rdoc

Put into environment.rb #HEROKI has this environment parameter set - which turns on the functionality HIDE_WITHOUT_NICE=(ENV['HIDE']=='true')

Put into application_controller

if HIDE_WITHOUT_NICE

acts_as_gated :template => 'shared/gate_closed' #decided to create custom urls instead of passing in this way

end

Put into routes.rb if HIDE_WITHOUT_NICE

map.nice 'nice2meetcha', :controller => 'iron_gate/gate', :action => 'open'
map.notnice 'notnice2meetcha', :controller => 'iron_gate/gate', :action => 'close'

end

Something went wrong with that request. Please try again.