Sha256: a6a8dd50770f0d5a8b321f01c41bbc93043ba4eb3dd9ef482d35ebdccd5cdac7

Contents?: true

Size: 868 Bytes

Versions: 3

Compression:

Stored size: 868 Bytes

Contents

# MetaTitles

Meta Titles for Rails Backend App in one .yml file

## Installation

Add this line to your application's Gemfile:

    gem 'meta_titles'

## Usage

1. Edit your controller to include this gem functionality:

    class Admin::ApplicationController < ApplicationController

      build_meta_titles

      ...

2. Edit file config/locales/meta_titles.yml with your meta titles:

    ru:

      meta_titles:

        admin:

          pages:

            index: Страницы

            show: Просмотр страницы

            new: Создание страницы

            create: Создание страницы

            edit: Редактирование страницы

            update: Редактирование страницы

          ...

3. Prepare your layout view to print @meta_title variable.

### Enjoy!

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
meta_titles-0.0.14 README.md
meta_titles-0.0.12 README.md
meta_titles-0.0.11 README.md