pantographe / view_component-form

Rails FormBuilder for ViewComponent
MIT License
204 stars 16 forks source link

Unable to load builder with default generator output #137

Closed coder2000 closed 1 year ago

coder2000 commented 1 year ago

The default location that the generator places the builder class of lib/ isn't loaded automatically by the application and needs to be manually included somewhere. There are are few options:

  1. Update the documentation to specify that it needs to be included
  2. Add an initializer to the generator that requires the builder
  3. Change the generator to put the builder in the app/helpers folder instead
Spone commented 1 year ago

I'd be OK with option 1, option 3 (but maybe with an app/forms folder?), or suggesting both 1 and 3 in the docs. What do you think @nicolas-brousse?