README.md in jt-rails-toolbox-2.0.0 vs README.md in jt-rails-toolbox-2.1.0

- old
+ new

@@ -12,11 +12,11 @@ gem 'jt-rails-toolbox', '~> 2.0' Create a `jt-toolbox.yml` file: - rails g jt:toolbox + rails g jt:toolbox A simple configuration of `jt-toolbox.yml` file: ```yml production: @@ -55,10 +55,11 @@ - [rails-i18n](https://github.com/svenfuchs/rails-i18n) Default locale data - [jt-rails-meta](https://github.com/jonathantribouharet/jt-rails-meta) Manage HTML meta tags - [jt-rails-generator-user](https://github.com/jonathantribouharet/jt-rails-generator-user) Generate a scaffold for user authentication - [jt-rails-tokenizable](https://github.com/jonathantribouharet/jt-rails-tokenizable) Generate tokens for ActiveRecord models - simplified configuration of hostnames and `ActionMailer` with a YAML file +- some helper methods ### Exception Notification If `exception` is not set in `jt-toolbox.yml` file, Exception Notification is disabled. In addition to the default ignored exceptions, the following exceptions are also muted: @@ -80,11 +81,13 @@ #### Warning Don't forget to install redis server and to launch sidekiq with: -`bundle exec sidekiq -e $RAILS_ENV -q default -q mailers -d -L log/sidekiq.log -P tmp/pids/sidekiq.pid` +``` +bundle exec sidekiq -e $RAILS_ENV -q default -q mailers -d -L log/sidekiq.log -P tmp/pids/sidekiq.pid +``` ### Hostname - `host` is the hostname of your website, it's used for setting the host when you email - `asset_host` is the hostname of the assets server. By default equal to `host`. @@ -93,9 +96,20 @@ It's a good practice to have a different domains for your web server and your file server (search "Cookieless Domain" on google for more informations). ### ActionMailer ActionMailer can be configured easily just with `jt-toolbox.yml` file. + +### Helper methods + +### google_anaytics_tag + +It will add automatically in production environment the javascript code for Google Analytics. +You just have add at the end of your `app/views/layouts/application.html.erb` file: + +``` +<%= google_anaytics_tag 'UA-XXXXXXX-X' %> +``` ## Author - [Jonathan Tribouharet](https://github.com/jonathantribouharet) ([@johntribouharet](https://twitter.com/johntribouharet))