diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-30 22:53:52 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2012-05-30 22:53:52 +0530 |
commit | ec74763c393c6a5f54eb64f0313610aead7f815a (patch) | |
tree | 39e3712c4cfc589083ed5072b6b8373361334441 /guides/source/engines.textile | |
parent | 0406a13fac7f809cb511e45583259e66d8739b4f (diff) | |
parent | 032f502f1221129d8446d3e25cd8956469b43456 (diff) | |
download | rails-ec74763c393c6a5f54eb64f0313610aead7f815a.tar.gz rails-ec74763c393c6a5f54eb64f0313610aead7f815a.tar.bz2 rails-ec74763c393c6a5f54eb64f0313610aead7f815a.zip |
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'guides/source/engines.textile')
-rw-r--r-- | guides/source/engines.textile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/engines.textile b/guides/source/engines.textile index c35305a822..86e7254201 100644 --- a/guides/source/engines.textile +++ b/guides/source/engines.textile @@ -36,6 +36,12 @@ To generate an engine with Rails 3.1, you will need to run the plugin generator $ rails plugin new blorgh --full --mountable </shell> +The full list of options for the plugin generator may be seen by typing: + +<shell> +$ rails plugin --help +</shell> + The +--full+ option tells the plugin generator that you want to create an engine (which is a mountable plugin, hence the option name), creating the basic directory structure of an engine by providing things such as the foundations of an +app+ folder, as well a +config/routes.rb+ file. This generator also provides a file at +lib/blorgh/engine.rb+ which is identical in function to an application's +config/application.rb+ file. The +--mountable+ option tells the generator to mount the engine inside the dummy testing application located at +test/dummy+ inside the engine. It does this by placing this line in to the dummy application's +config/routes.rb+ file, located at +test/dummy/config/routes.rb+ inside the engine: |