https://github.com/binarymuse/mountie
Demonstrating mountable engines for Rails 3
https://github.com/binarymuse/mountie
Last synced: about 1 year ago
JSON representation
Demonstrating mountable engines for Rails 3
- Host: GitHub
- URL: https://github.com/binarymuse/mountie
- Owner: BinaryMuse
- License: mit
- Created: 2012-02-17T20:36:17.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2012-02-18T00:10:10.000Z (over 14 years ago)
- Last Synced: 2025-03-23T18:58:25.681Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 117 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Mountie
=======
A small gem to demonstrate mountable engines in Rails 3.
Gettings Started
----------------
1. Clone the repository
2. `bundle install` from the root
Running the Test Rails Server
-----------------------------
1. `cd test/dummy`
2. Copy the Engine migrations with `rake mountie:install:migrations`
3. Migrate the database with `rake db:migrate`
4. `rails server`
Note that if you `rake db:migrate` from the engine root that the test app database is automatically updated.
http://localhost:3000 is now running the dummy app with the engine mounted at `/mountie`.
The path to test resources is at http://localhost:3000/mountie/entries.
Running a Rake Task Defined by the Engine
-----------------------------------------
Just run `rake mountie:run`; the task is listed in `rake -T`.