No commit activity in last 3 years
No release in over 3 years
The Information Commissioner's Office provide information as to how UK-based websites should handle notifying visitors of cookie use. This gem provides a discreet overlay which sets a cookie on acceptance, but otherwise doesn't interfere with the site, in line with ICO guidelines.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 3.1.0
 Project Readme

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.