README.rdoc in niftier-generators-0.1.0 vs README.rdoc in niftier-generators-0.1.1
- old
+ new
@@ -1,22 +1,24 @@
= Niftier Generators
A collection of (more) useful Rails generator scripts for scaffolding, layout files, authentication, and more.
+<b>NOTE:</b> This is a fork of the awesome "nifty-generators" by Ryan Bates. You can find the original project here: http://github.com/ryanb/nifty-generators
+
== Install
gem install niftier-generators
Include it in your Gemfile.
gem "niftier-generators"
== Usage
-Once you install the gem, the generators will be available to all Rails applications on your system. If you run script/generate without any additional arguments you should see the available generators listed.
+Once you install the gem, the generators will be available to all Rails applications on your system. If you run 'rails generate' without any additional arguments you should see the available generators listed.
-To run the generator, go to your rails project directory and call it using the script/generate or script/destroy command.
+To run the generator, go to your rails project directory and call it using the 'rails generate' or 'rails destroy' command.
rails generate niftier:scaffold Recipe name:string index new
== Included Generators
@@ -29,16 +31,17 @@
To view the README for each generator, run it with the +help+ option.
rails generate niftier:layout --help
== Troubleshooting and FAQs
+Find the original nifty-generators FAQ here: http://github.com/ryanb/nifty-generators
-<b>What is the difference between niftier_scaffold and built-in scaffold?</b>
+<b>What is the difference between niftier:scaffold and built-in scaffold?</b>
-One of the primary differences is that niftier_scaffold allows you to choose which controller actions to generate.
+One of the primary differences is that niftier:scaffold allows you to choose which controller actions to generate.
- script/generate niftier_scaffold post name:string index new edit
+ rails generate niftier:scaffold post name:string index new edit
There are a few changes to the generated code as well, such as no XML format by default.
It also offers support for HAML, Shoulda, and RSpec.
@@ -52,12 +55,12 @@
Add the attribute to the attr_accessible line in the model.
<b>I get "undefined method 'root_url'" error.</b>
-Some generators default redirecting to the root_url. Set this in your routes.rb file like this (substituting your controller name).
+Some generators default redirecting to the root_url. Set this in your routes.rb file like this (substituting your controller and action names).
- map.root :controller => 'foo'
+ root :to => "controller#action"
<b>I get a missing database error.</b>
Run <tt>rake db:migrate</tt>.