Skip to content
This repository was archived by the owner on Nov 30, 2018. It is now read-only.

Commit 0ebb8ec

Browse files
committed
Updated readme with new info
1 parent ce22a79 commit 0ebb8ec

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,19 @@
11
# ActiveAdmin::Globalize
2+
23
Makes it easy to translate your resource fields.
34

45
## Installation
56

7+
This version targets Rails 4 and greater and ActiveAdmin >= 1.0.0.pre.
8+
69
```ruby
7-
gem 'activeadmin-globalize', '~> 0.6.3'
10+
gem 'activeadmin-globalize', '~> 1.0.0.pre', github: 'fabn/activeadmin-globalize', branch: 'develop'
811
```
912

10-
This version targets Rails 3.2.x only and ActiveAdmin ~> 0.6.3.
13+
As soon as ActiveAdmin 1.x is released to rubygems, I'll release the gem with no need for github dependency. See
14+
[this issue](https://github.com/activeadmin/activeadmin/issues/3448) for more details.
15+
16+
Previous version with support for Rails 3 is maintained in branch [support/0.6.x](https://github.com/fabn/activeadmin-globalize/tree/support/0.6.x)
1117

1218
## Your model
1319

@@ -19,6 +25,10 @@ end
1925
## Editor configuration
2026

2127
```ruby
28+
29+
# For usage with strong parameters you'll need to permit them
30+
permit_params translations_attributes: [:id, :locale, :title, :content, :_destroy]
31+
2232
index do
2333
# textual translation status
2434
translation_status
@@ -39,19 +49,17 @@ end
3949
```
4050
If `switch_locale` is set, each tab will be rendered switching locale.
4151

42-
## Friendly ID
43-
44-
If you want to use Friendly ID together with Globalize, please take a look
45-
at the `activeadmin-seo` gem.
4652

4753
## Hints
4854

4955
To use the dashed locale keys as 'pt-BR' or 'pt-PT' you need to convert a string
5056
to symbol (in application.rb)
5157

58+
```ruby
5259
config.i18n.available_locales = [:en, :it, :de, :es, :"pt-BR"]
60+
```
5361

5462
## Credits
5563

5664
This work is based on original idea by [@stefanoverna](https://github.com/stefanoverna/activeadmin-globalize),
57-
I needed it for AA 0.6.x so I forked the original project.
65+
I needed it for AA 0.6.x so I forked the original project and expanded it with more features.

0 commit comments

Comments
 (0)