Sha256: 788f91152419e1cc96d21925a45a299b8d730f83b002e777eb049239eea9c521
Contents?: true
Size: 1.08 KB
Versions: 3
Compression:
Stored size: 1.08 KB
Contents
# RailsAdminMongoidLocalizeField Adds to [RailsAdmin](https://github.com/sferik/rails_admin) support for [mongoid localized fields](http://mongoid.org/en/mongoid/docs/documents.html#localized_fields). ## Installation In your `Gemfile`add the following dependencies: gem "rails_admin_mongoid_localize_filed", "~> 0.1.0" Run: $ bundle install ## Usage Just by telling the field to `localize`: ```ruby class Category include Mongoid::Document field :name, type: String, localize: true field :description, type: String, localize: true end ``` If you didn't like ui tabs, you can remove them and use simple form template by using `tabbed` option: ```ruby # config/initializer/rails_admin.rb config.model 'Category' do edit do field :name do tabbed false end field :description do tabbed false end end end ``` ## Screenshot  ## Dependencies * haml * mongoid >= 3.0 * rails >= 3.0 * rails_admin >= 0.5 This project rocks and uses MIT-LICENSE.
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_admin_mongoid_localize_filed-0.1.2.1 | README.md |
rails_admin_mongoid_localize_filed-0.1.2b | README.md |
rails_admin_mongoid_localize_filed-0.1.1 | README.md |