Closed ortegacmanuel closed 6 years ago
@acesuares Major changes after our conversation about this PR are:
Removed the generators, they overwritten file in the host/main app..no a good idea because it could overwrite some valuable changes maid in the main app..as the background in papiamentu.info
Instead of using generators to overwrite files in the main app, now the gem loads its own assets and initializers, this is great because it make more ease the actualization, isolates gem code and what ever you want to overwrite or configuration, you can do it manually in the main app because anything in the main app always takes precedence over the engines.
In order to easily load files from the engine, they have to be in a convention folder structure, this is why you will find new folders and see that the inline_forms is getting a new folder structure, all these I'm doing following instructions here http://guides.rubyonrails.org/engines.html
This PR
When you install this version of inline_forms on you app, in order to get it working you need to
Add new routes to your resources
Import
rails railties:install:migrations
and runrails db:migrate
migrations. The migration is needed because of this https://github.com/airblade/paper_trail#3c-diffing-versions In few words this is needed in order to save what changes form version to version.