Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Opt-out cookie policy notice engine for rails.
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
app
config
lib
vendor/assets
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
initforthe-cookies.gemspec

README.md

initforthe-cookies

Opt-out cookie policy notice engine for rails. Opt-out is implemented by setting a cookie. Irony?

Usage

  • Add 'initforthe-cookies' to gemfile && bundle install
  • Add 'initforthe-cookies' asset loading to css and js manifests
  • Mount the engine at desired location (mount Initforthe::Cookies::Engine, at: '/cookie_policy' in config/routes.rb)
  • Set your app name by creating an initializer in config/initializers, i.e.:
Initforthe::Cookies.setup do |config|
  config.site_name = 'The Initforthe Website'
  config.policy_url = '/pages/cookies'
  config.button_classes = 'btn'
end
  • Call from your layout by <%= cookie_policy %>

License

MIT-LICENSE.

Something went wrong with that request. Please try again.