diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-02-24 12:29:25 +0000 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-02-24 12:29:25 +0000 |
commit | 53cd102b39eb62567298430cbd94e40dd78d46a0 (patch) | |
tree | 3d8a087421f0d74da7a7c3878e3ad1dddbf23697 /railties/guides/source/plugins.textile | |
parent | e56b3e4c0b60b2b86f5ca9c5e5a0b22fa34d37ab (diff) | |
download | rails-53cd102b39eb62567298430cbd94e40dd78d46a0.tar.gz rails-53cd102b39eb62567298430cbd94e40dd78d46a0.tar.bz2 rails-53cd102b39eb62567298430cbd94e40dd78d46a0.zip |
Merge with docrails
Diffstat (limited to 'railties/guides/source/plugins.textile')
-rw-r--r-- | railties/guides/source/plugins.textile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/railties/guides/source/plugins.textile b/railties/guides/source/plugins.textile index c4fa7a88cd..d2fb157e35 100644 --- a/railties/guides/source/plugins.textile +++ b/railties/guides/source/plugins.textile @@ -51,7 +51,7 @@ NOTE: The aforementioned instructions will work for sqlite3. For more detailed h4. Generate the plugin skeleton -Rails ships with a plugin generator which creates a basic plugin skeleton. Pass the plugin name, either 'CamelCased' or 'under_scored', as an argument. Pass +\--with-generator+ to add an example generator also. +Rails ships with a plugin generator which creates a basic plugin skeleton. Pass the plugin name, either 'CamelCased' or 'under_scored', as an argument. Pass +--with-generator+ to add an example generator also. This creates a plugin in 'vendor/plugins' including an 'init.rb' and 'README' as well as standard 'lib', 'task', and 'test' directories. @@ -63,7 +63,7 @@ Examples: To get more detailed help on the plugin generator, type +./script/generate plugin+. -Later on this guide will describe how to work with generators, so go ahead and generate your plugin with the +\--with-generator+ option now: +Later on this guide will describe how to work with generators, so go ahead and generate your plugin with the +--with-generator+ option now: <pre> ./script/generate plugin yaffle --with-generator @@ -796,7 +796,7 @@ You can also see if your routes work by running +rake routes+ from your app dire h3. Generators -Many plugins ship with generators. When you created the plugin above, you specified the --with-generator option, so you already have the generator stubs in 'vendor/plugins/yaffle/generators/yaffle'. +Many plugins ship with generators. When you created the plugin above, you specified the +--with-generator+ option, so you already have the generator stubs in 'vendor/plugins/yaffle/generators/yaffle'. Building generators is a complex topic unto itself and this section will cover one small aspect of generators: generating a simple text file. @@ -1504,3 +1504,9 @@ The final plugin should have a directory structure that looks something like thi | `-- yaffle_test.rb `-- uninstall.rb </shell> + +h3. Changelog + +"Lighthouse ticket":http://rails.lighthouseapp.com/projects/16213/tickets/32-update-plugins-guide + +* November 17, 2008: Major revision by Jeff Dean |