[![Gem Version](https://badge.fury.io/rb/worker-field-nested_has_many.svg)](https://badge.fury.io/rb/worker-field-nested_has_many) # This Gem is a custom version for a project ## Thanks 🙏🏼 The original and the 99,99997 % is not my This awesome Gem is from : [nickcharlton][nickcharlton]. [baldursson][baldursson]. [pablobm][pablobm]. [graysonwright][graysonwright]. [okuramasafumi][okuramasafumi]. [badosu][badosu]. 🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼 🙏🏼 And from also all the huge web discussion A huge thank you to Nick Charlton & Grayson Wright !! ### Why a custom version ? First, i never did or push any kind of Gems, before. So it was an objectif. Second, this gem is perfect, and i need some more . More specifications inside the form, as class, or ids, or anything that could help me to build a good UX inside forms. ### you are beginner with Gem ? here some links... => create a gem https://goo.gl/kSkKvq => and when you want to update it https://goo.gl/UoAsJg # The Original README => Administrate::Field::NestedHasMany A plugin for nested has_many forms in [Administrate]. ## Usage Add to your `Gemfile`: ```ruby gem "administrate-field-nested_has_many" ``` Run: ```bash $ bundle install ``` Add to your `FooDashboard`: ```ruby ATTRIBUTE_TYPES = { bars: Field::NestedHasMany.with_options(skip: :foo), } ``` The `skip` option takes a single symbol or list of symbols. It will prevent the nested form from displaying the fields for those attributes. If a `Customer` `has_many :orders`, and you want to render `orders` as a nested form on the customer edit page, then it is generally necessary to add `skip: :customer` to the options for the `NestedHasMany` field. Otherwise, Administrate will try to render a field for the order's `:customer` attribute, which breaks the nested form logic. [Administrate]: https://github.com/thoughtbot/administrate A plugin for nested has_many forms in [Administrate]. This Gem is a specific custmized one form the original one available there from the name administrate-field-nested_has_many you can get the original one there https://github.com/nickcharlton/administrate-field-nested_has_many ```ruby gem "administrate-field-nested_has_many" ``` [badosu]: https://github.com/badosu [okuramasafumi]: https://github.com/okuramasafumi [pablobm]: https://github.com/pablobm [baldursson]: https://github.com/baldursson [nickcharlton]: https://github.com/nickcharlton [graysonwright]: https://github.com/graysonwright