meta_titles 0.0.1 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +12 -0
- data/lib/meta_titles/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
|
@@ -13,21 +13,33 @@ Add this line to your application's Gemfile:
|
|
|
13
13
|
1. Edit your controller to include this gem functionality:
|
|
14
14
|
|
|
15
15
|
class Admin::ApplicationController < ApplicationController
|
|
16
|
+
|
|
16
17
|
build_meta_titles
|
|
18
|
+
|
|
17
19
|
...
|
|
18
20
|
|
|
19
21
|
2. Edit file config/locales/meta_titles.yml with your meta titles:
|
|
20
22
|
|
|
21
23
|
ru:
|
|
24
|
+
|
|
22
25
|
meta_titles:
|
|
26
|
+
|
|
23
27
|
admin:
|
|
28
|
+
|
|
24
29
|
pages:
|
|
30
|
+
|
|
25
31
|
index: Страницы
|
|
32
|
+
|
|
26
33
|
show: Просмотр страницы
|
|
34
|
+
|
|
27
35
|
new: Создание страницы
|
|
36
|
+
|
|
28
37
|
create: Создание страницы
|
|
38
|
+
|
|
29
39
|
edit: Редактирование страницы
|
|
40
|
+
|
|
30
41
|
update: Редактирование страницы
|
|
42
|
+
|
|
31
43
|
...
|
|
32
44
|
|
|
33
45
|
3. Prepare your layout view to print @meta_title variable.
|
data/lib/meta_titles/version.rb
CHANGED