1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

contrib guide: documents how to generate a --dev application

This commit is contained in:
Xavier Noria 2013-03-28 17:52:23 +01:00
parent 27d12bde1f
commit 3eebc143af

View file

@ -53,6 +53,22 @@ The easiest and recommended way to get a development environment ready to hack i
In case you can't use the Rails development box, see section above, check [this other guide](development_dependencies_install.html).
Running an Application Against Your Local Branch
------------------------------------------------
The `--dev` flag of `rails new` generates an application that uses your local
branch:
```bash
$ cd rails
$ bundle exec rails new ~/my-test-app --dev
```
The application generated in `~/my-test-app` runs against your local branch
and in particular sees any modifications upon server reboot.
Testing Active Record
---------------------