ruby
Integer_fu: store and manipulate many boolean values in a single integer column, with convenience
Link: http://github.com/maxim/integer_fu
I just finished the first version of a convenient plugin I’ve been writing for my own project. Integer_fu lets you map an integer attribute in your model to many possible boolean values, and then access them easily using hash-like syntax and some magical methods. Check it out down at Github. I tried to explain [...]
W3C macros is now a Rails plugin on GitHub
Feel free to grab it at github.com/maxim/should_pass_w3c_validation.
W3C validation in functional tests with shoulda macros
Update: Added code explanation.
I found that the best place to put W3C validation tests would be among your controller tests. In your functionals you already walk across all your pages and deal with authentication, so why not put some more load on that donkey?
First thing – install w3c_validators gem. sudo gem install w3c_validators
Now, throw the following [...]