Rails411 is your one stop Ruby on Rails resource directory. Here you will find Ruby on
Rails tutorials, Conference & Workshop Listings, Forums, and Hosting. We are the
definitive guide for Ruby on Rails web applications, components, gems, scripts, and
other related resources for Ruby on Rails. Accomplishing more with your Ruby on Rails
website is easy with the help of these tested, pre-packaged, and ready-to-run
resources.
Click any category to add your site for free.
Friday, July 4 2008
| Rails411 |
| How To Use Fixtures With HABTM |
If you need to test an application that uses a has_and_belongs_to_many (habtm) relationship, you’ll need to do a few extra things to your testing setup. Since it took me a bit of poking to 1. figure out that the habtm relationship wasn’t happening automagically in the tests, and 2. figure out how to make it happen, I thought I would jot down a few notes that may help others.
|
|
|