aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/plugins.textile
diff options
context:
space:
mode:
Diffstat (limited to 'railties/guides/source/plugins.textile')
-rw-r--r--railties/guides/source/plugins.textile12
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