Meta2
Implementation of the order to easily manage the meta-information for engineers and service managers. When your write i18n file or manage database through active record, put on it is reflected meta information on html.
Installation
Add this line to your application's Gemfile:
gem 'meta2'
And then execute:
$ bundle
Or install it yourself as:
$ gem install meta2
Features
- Minimize the number of issued of SQL for system load usisng active record strategy.
- Implement scafoiding of the management function.
Supported ORMs.
Active record only.
Usage
- bundle 'meta2' gem.
- Create setting file for
meta2
by install command. You can use the generator for doing this (% rails g meta2:install
) Setting file is created (config/initializers/meta2.rb
). - Basically there is not problem with default setting, if you need to change it, Plrease change in the reference of
Setting
section. - Writing helper method for meta2 (
meta_tags
) into html head tag. - Please configure the meta-information according strategry your choice for each page on your system.
- Then it's done.
Setting
-
strategy You can choise
:i18n
or:activerecord
as the storage for saving meta information. default,i18n
. -
assign_name Default
meta2
. Basically you do not need to change. -
columns Default
title
,description
andkeyword
. -
logger
*logging
Configuration
I18n
Active record
Contributing
- Fork it ( https://github.com/[my-github-username]/meta2/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request