RSpec Haml Scaffold Generator plugin

Plugin details

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)

Websitehttp://blog.citrusbyte.com/2008/3/11/what-s-that-rspec-haml-scaffolds-yes-it-is Repositorygit://github.com/dfischer/rspec-haml-scaffold-generator.git Author James Akers Tags RSpec, scaffold, HAML LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/dfischer/rspec-haml-scaffold-generator.git

To install the git way (until Rails’ script/install supports git) do this in your rails_root/vendor/plugins directory:

  git clone git://github.com/dfischer/rspec-haml-scaffold-generator.git


Bam, you’re done. You should have a rspec-haml-scaffold folder in your vendor/plugins directory and when you fire up the following command:

  script/generate


You should see “rspec_haml_scaffold” in the “installed generators…plugins” section.

Examples:

# no attributes, view will be anemic 
./script generate rspec_haml_scaffold post  

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

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: Guest, 6 days ago