A collection of hacks to the Rails scaffold generator, to make it output templates using Haml rather than ERB. You may like some of it, and may hate other parts. You’re free to use it under the terms of the MIT license if the parts you like outweigh the parts you hate.
This scaffold generator does the same thing as the default Rails scaffold generator, with a few differences.
Haml Scaffold is available on RubyForge as a gem:
sudo gem install haml_scaffold
You can also install it as a Rails plugin if you wish:
./script/plugin install git://github.com/norman/haml-scaffold.git
The generated code will depend on:
You’ll need to add the gem dependencies to your config/environment.rb manually:
config.gem "haml" config.gem "will_paginate" config.gem "mocha"
Also, don’t forget to Hamlize your Rails app:
$ cd my_rails_app $ haml --rails .
This work is derived from code in Ruby on Rails and is released under its same license, the MIT License.
Generated with the Darkfish Rdoc Generator 1.1.6.