Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tonytonyjan/rails-engine-sample

Demonstrate how to convert an Rails app into engine, and mount to another.
https://github.com/tonytonyjan/rails-engine-sample

Last synced: about 2 months ago
JSON representation

Demonstrate how to convert an Rails app into engine, and mount to another.

Awesome Lists containing this project

README

        

## Usage

1. Enter `app_host`
2. `bundle install`
3. `rake app_full_engine:install:migrations`
4. `rake app_full_engine:install:migrations`
5. `rake db:migrate`
6. `rails s`

Then you can access:

* `/posts`, it's obtained from `app_host` it self
* `/projects`, it's obtained from `app_full`
* `/haha/posts`, it's obtained from `app_mountable`