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

Consistent monospaced markup for command options.

This commit is contained in:
Andreas Scherer 2009-02-16 12:07:55 +01:00
parent ce49b7522a
commit e8053435ac

View file

@ -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.
@ -1509,4 +1509,4 @@ h3. Changelog
"Lighthouse ticket":http://rails.lighthouseapp.com/projects/16213/tickets/32-update-plugins-guide
* November 17, 2008: Major revision by Jeff Dean
* November 17, 2008: Major revision by Jeff Dean