infochimps / rspec-haml-scaffold-generator forked from mrflip/rspec-haml-scaffold-generator

A Haml Scaffolding Generator for RSpec

This URL has Read+Write access

name age message
file .gitignore Loading commit data...
file LICENSE Wed May 06 16:28:36 -0700 2009 Turned project into a gem [zachinglis]
file README.rdoc
file Rakefile Wed May 06 16:28:36 -0700 2009 Turned project into a gem [zachinglis]
file VERSION.yml Wed May 06 16:34:17 -0700 2009 Version bump to 1.0.0 [zachinglis]
file application_controller_template.rb
directory generators/
file install.rb Mon Mar 10 15:27:18 -0700 2008 initial commit of files [Daniel Fischer]
file rspec-haml-scaffold-generator.gemspec Wed May 06 16:36:23 -0700 2009 Version is now 1.0.0 [zachinglis]
file rspec_haml_scaffold_generator_test.rb Wed May 06 16:28:36 -0700 2009 Turned project into a gem [zachinglis]
README.rdoc

RSpec Haml Scaffold Generator

This is an uber version of the RSpec Scaffold Generator, the following things have been added:

Support for Haml instead of erb Nested routes (nested tests/migrations)

Installation:

  sudo gem install zachinglis-rspec-haml-scaffold

Examples:

  ./script/generate rspec_haml_scaffold post # no attributes, view will be anemic
  ./script/generate rspec_haml_scaffold post attribute:string attribute:boolean # this is actually broken at the moment, don't do this !!! Feel free to patch it

Credits

  * Daniel Fischer - http://danielfischer.com
  * Zach Inglis - http://zachinglis.com

*************************

  On First Install

*************************

  • Please paste the last part of
      application_controller_template.rb
    

    into your

      app/controllers/application_controller_template.rb
    
  • The templates use the ‘title’ helper from nifty_layout,
      git://github.com/ryanb/nifty-generators.git