项目作者: initforthe

项目描述 :
用于rails的选择退出cookie策略通知引擎。
高级语言: Ruby
项目地址: git://github.com/initforthe/initforthe-cookies.git
创建时间: 2012-06-22T13:51:27Z
项目社区:https://github.com/initforthe/initforthe-cookies

开源协议:MIT License

下载


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.:
  1. Initforthe::Cookies.setup do |config|
  2. config.site_name = 'The Initforthe Website'
  3. config.policy_url = '/pages/cookies'
  4. config.button_classes = 'btn'
  5. end
  • Call from your layout by <%= cookie_policy %>

License

MIT-LICENSE.