Sha256: 1d7892929b82b75de0d4b2e8eac62cde0f28520931f765581498fe072b790e7e

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

= very_nifty_generators

Rails 3 nifty generators based on efforts by ryanb and dvyjones.
The generators use the very DRY rails 3 conventions as described by ryanb

http://ryandaigle.com/articles/2009/8/10/what-s-new-in-edge-rails-default-restful-rendering
http://ryandaigle.com/articles/2009/8/6/what-s-new-in-edge-rails-cleaner-restful-controllers-w-respond_with

The gem comes with executables that can be found in the /bin folder
 *  nifty_auth
 *  nifty_config
 *  nifty_layout

==  Scaffold

nifty_scaffold [model:string] [attributes:hash]

$ nifty_scaffold Person name:string birthdate:date

== Application

nifty_app [application name]

$ nifty_app my_best_app

Note: 
The nifty_app is a bare-bones rails 3 app, without any prototype files, index file etc. This bare bones file is intended as a building-block for use with
Rails application templates to add custom application logic, such as the use of prototype/jquery, testing frameworks, authentication etc.
This bare-bones approach is meant to avoid having to first delete specific files from the default rails app created by the built-in rails app generator.  

The executables are installed when the gem is installed on your system
$ sudo gem install very_nifty_generators

Note: More nifty generators for rails 3 are in the pipeline… feel free to come with suggestions.

Also check out my monog_model_r3 gem with generators for use with mongo DB ;)

== Note on Patches/Pull Requests
 
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
  future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2010 Kristian Mandrup. See LICENSE for details.

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
very_nifty_generators-0.2.1 README.rdoc
very_nifty_generators-0.2.0 README.rdoc