Sha256: abee4f05511d84872abd4c7c66c6279de0a9e016b2c2b3f23a0a841048a86aa4

Contents?: true

Size: 1.38 KB

Versions: 1

Compression:

Stored size: 1.38 KB

Contents

# Activeadmin::Mongoid::Localize

Easily edit mongoid localized fields in ActiveAdmin (all locales on one page)

## Screenshot

 ![AML](http://rscx.ru/aml.jpg)

## Installation

Add this line to your application's Gemfile:

    gem 'activeadmin-mongoid-localize'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install activeadmin-mongoid-localize

## Usage

Really simple:

    # in model
    field :title, type: String, localize: true
    field :content, type: String, localize: true

    # in admin
    f.inputs do
      f.localized_input :title
      
      # and ckeditor too!
      f.localized_input :content, as: :ckeditor
    end

    # displaying in show action
    show do |f|
        panel I18n.t('fields') do
            localize_attributes_table_for f do
                row :name
                row :text
            end
        end
    end

CKEditor is tested & working with my fork: https://github.com/glebtv/ckeditor

ActiveAdmin-mongoid is tested & working with my fork: https://github.com/rs-pro/activeadmin-mongoid

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

## License

This gem uses free flags icons from famfamfam -- http://www.famfamfam.com/lab/icons/flags/

MIT License

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activeadmin-mongoid-localize-0.3.1 README.md