From 3eebc143afd7a1d967fbf939e0f20a00a37a0337 Mon Sep 17 00:00:00 2001 From: Xavier Noria Date: Thu, 28 Mar 2013 17:52:23 +0100 Subject: [PATCH] contrib guide: documents how to generate a --dev application --- guides/source/contributing_to_ruby_on_rails.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/guides/source/contributing_to_ruby_on_rails.md b/guides/source/contributing_to_ruby_on_rails.md index cc4e369e7d..e1827ffac0 100644 --- a/guides/source/contributing_to_ruby_on_rails.md +++ b/guides/source/contributing_to_ruby_on_rails.md @@ -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 --------------------- -- GitLab