Posts Tagged ‘haml’

What’s that? RSpec Haml Scaffolds? Yes, it is!

Tuesday, March 11th, 2008

Some people use scaffolds, some people don’t. To those who do and happen to have their project taking advantage of Haml, probably understand the pain it is to go through all those lame rhtml files and convert them to Haml. Thus, a quick and dirty solution has arrived. Meet your master: “RSpec Haml Scaffolds”.

It’s hosted at github over here:
http://github.com/dfischer/rspec-haml-scaffold-generator

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.

Remember this is a quick and dirty version of the plugin. There may be a couple quirks with it, if so feel free to fork the repository on github and submit a patch!

p.s If anyone needs a github invite I have three left. All you need to do is request one in the comments, be sure to leave a way to contact you.