Created
April 15, 2015 19:25
-
-
Save jonatanrdsantos/22d682d9c5a96ff4960b to your computer and use it in GitHub Desktop.
Rails engine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to generrate simple blog with rails engine: | |
```bash | |
$ rails plugin new blorgh --mountable | |
$ cd blorgh/ | |
$ rails generate scaffold article title:string text:text | |
``` | |
Add to gem file `gem 'blorgh', path: "/path/to/blorgh"` | |
```bash | |
$ bundle install | |
$ rake railties:install:migrations | |
$ rails s | |
``` | |
Good look! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment