Skip to content
A simple “active” agegate.
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
app
config
lib
script
spec
test/dummy
tmp
.gitignore
.rspec
.ruby-version
Gemfile added high level capybara tests
Gemfile.lock
Guardfile
MIT-LICENSE first commit
README.rdoc
Rakefile added high level capybara tests
agegate.gemspec changed gem name

README.rdoc

Agegate

A simple “active” agegate.

Install

in your Gemfile add:

gem "agegate", :git => 'git://github.com/losco/rails-agegate.git'

and run:

$ bundle install

Setting up

Just run:

$ rails generate agegate:install

In you application_controller.rb file add:

before_filter :check_agegate

and you are good to go.

Configure

Add the following to your configuration, if you need to override one of the default values. This can go in config/application.rb, or customized in each environment in config/environments/[name].rb:

config.agegate.skip = false
config.agegate.min_age = 18
Something went wrong with that request. Please try again.