- Isolated engine - short description
- Create an engine:
rails plugin new <name> --full --mounted
- undocumented mv <name> vendor/apps
- cleanup engine's Gemfile (?)
- add engine to main app's Gemfile
- routes in engine's config/routes.rb then mount in main app's config/routes.rb
- views - lookup paths; default paths, might need to reverse order
- tests - dummy app; use the main app instead
- namespaced controllers and views
Created
November 13, 2011 13:24
-
-
Save szimek/1362112 to your computer and use it in GitHub Desktop.
Steps for creating Rails engine to separate existing app into smaller ones
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment