August 2008
2 posts
Stuck On Fixtures
Talking ‘bout model generation
To do proper testing, you need to have a viable “known to be correct” data-set with which to test your application against. But creating that data-set sucks because you have to be very careful and thorough when hand-writing it. Plus if you ever change your database’s schema, you have to go back and change ALL of your fixtures.
This sucks.
But you have...
Entication Vs Orization
Think a little different about auth
Rails has us trained. It’s such an opinionated framework and it’s creators are so revered for it that we just assume that the way it works is the ‘right’ way. Take authentication for instance. Technoweenie’s Restful-Authentication
plugin is the most suggested and common way of doing user authentication in a Rails application.
Because...