Mike Blyth wrote:
> According to Agile Web Development with Rails (pg 148), a fixture like
> 
> version_control_book:
>   id: 1
>   title: Pragmatic Version Control
>   ...
> 
> loaded as "fixtures: products"
> 
> can be accessed as @products["version_control_book"] or 
> @version_control_book within a unit test (TestCase).

You should post to the Rails list, not this Ruby list.

But...

The book is out of date if you're running rails 1.0.  Instantiated 
fixtures are no longer enabled by default.

You need to do:

mybook = products(:version_control_book)

etc.

-- 
Posted via http://www.ruby-forum.com/.