This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
commit 92503aff8a065833c6f83446ec27ddbb7e2ea6e9
tree 5c6775e4f234371d6f8d98640b169926fbcacda7
parent 8e0902f715fee1a71955da31cce037d01266935a
tree 5c6775e4f234371d6f8d98640b169926fbcacda7
parent 8e0902f715fee1a71955da31cce037d01266935a
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon May 05 21:46:07 -0700 2008 | [ryanb] |
| |
CHANGELOG | Mon Jul 21 09:01:34 -0700 2008 | [ryanb] |
| |
LICENSE | Tue May 06 10:19:51 -0700 2008 | [Ryan Bates] |
| |
Manifest | Fri May 16 08:39:53 -0700 2008 | [ryanb] |
| |
README | Fri May 16 08:36:05 -0700 2008 | [ryanb] |
| |
Rakefile | Mon Jul 21 09:01:34 -0700 2008 | [ryanb] |
| |
TODO | Fri May 16 08:50:10 -0700 2008 | [ryanb] |
| |
lib/ | Thu May 08 15:24:17 -0700 2008 | [ryanb] |
| |
nifty-generators.gemspec | Mon Jul 21 09:01:34 -0700 2008 | [ryanb] |
| |
rails_generators/ | Mon Jul 21 08:59:20 -0700 2008 | [ryanb] |
| |
script/ | Tue May 06 15:27:07 -0700 2008 | [ryanb] |
| |
tasks/ | Thu May 08 15:22:04 -0700 2008 | [ryanb] |
| |
test/ | Fri Jun 20 11:52:17 -0700 2008 | [ryanb] |
README
= Nifty Generators A collection of useful Rails generator scripts by Ryan Bates. == Install gem install ryanb-nifty-generators --source=http://gems.github.com == 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. To run the generator, go to your rails project directory and call it using the script/generate or script/destroy command. script/generate nifty_scaffold Recipe name:string index new == Included Generators * nifty_layout: generates generic layout, stylesheet, and helper files. * nifty_scaffold: generates a controller and optional model/migration. * nifty_config: generates a config YAML file and loader. Run the command with the --help option to learn more. script/generate nifty_layout --help == Troubleshooting *I get "undefined method 'title'" error for nifty_scaffold.* Try running nifty_layout too, that will generate this helper method. Or you can just change the templates to whatever approach you prefer for setting the title. *Forms don't work for nifty_scaffold.* Try restarting your development server. Sometimes it doesn't detect the change in the routing. *The tests/specs don't work for nifty_scaffold.* Make sure you have mocha installed and require it in your spec/test helper. gem install mocha # in spec_helper.rb config.mock_with :mocha # in test_helper.rb require 'mocha' Also, make sure you're using edge rails (or 2.1 when released) as some methods require that. == Development This project can be found on github at the following URL. http://github.com/ryanb/nifty-generators/ If you wish the generators behaved differently, please consider forking the project and modifying to your heart's content.




