Skip to content

Instantly share code, notes, and snippets.

@jonatanrdsantos
Created April 15, 2015 19:25
Show Gist options
  • Save jonatanrdsantos/22d682d9c5a96ff4960b to your computer and use it in GitHub Desktop.
Save jonatanrdsantos/22d682d9c5a96ff4960b to your computer and use it in GitHub Desktop.
Rails engine
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