You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Aiman Najjar edited this page Mar 18, 2016
·
1 revision
RailsAdminSimpleHasMany
RailsAdminSimpleHasMany is a field type for Rails Admin for has_many associations that do not require a complex multiselect field. RailsAdminSimpleHasMany has been only tested with Mongoid adapter and on Chrome/Safari. I do not expect major issues with other ORMs or browsers, but bugs and enhancements pull requests are welcome!
Example of how the collection field would look like:
Usage
Simply add the following gem to your Gemfile:
gem "rails_admin_simple_has_many"
And then run bundle (note: rails_admin should already be in your Gemfile)
Note: orderable enables UI controls to move items up and down but you still need to support it in your models, see here for an example using a similar widget.