DEV Community

Discussion on: Your first ruby gem 💎

Collapse
 
lso profile image
Louis Sommer • Edited

Hey Roman ! Thanks ! Our take on the issue is quite different from cocoon. We're providing users with a complete wrapper around nested_attributes, which includes :

  • Easy configuration and syntax in the model
  • Easier permission of attributes in the controller
  • Either a preconfigured one-liner, or a very flexible way of displaying fields on the view side (without having to resort to quirky and unreliable data attributes)
  • Generators, including one that generates all the above config + a pre-filled partial. Also, cocoon is implemented in jquery, whereas we chose to implement everything with stimulus. Have a look at the doc for more details 😬
Collapse
 
romanvanloo profile image
RomanVanLoo

Alright cool! I definitely try it out next time in need for nested forms! ✌️
Cool to use stimulus, it's definitely an underrated framework!