Sergei Serdyuk
2006-Mar-21 17:39 UTC
[Rails] Instance variable shortcuts to fixture data are not working?
Hi, I am following the Agile Web Development with Rails book and it looks like either book is wrong or edge rails are broken. I am trying to access fixture data through instance shortcuts. I.e. customers.yml through @customers and it is not assigned. Anybody knows why? Sergei -- Posted via http://www.ruby-forum.com/.
Sergei Serdyuk
2006-Mar-21 17:40 UTC
[Rails] Re: Instance variable shortcuts to fixture data are not work
If you have the book, look at pages 148-149 to see what I am talking about -- Posted via http://www.ruby-forum.com/.
Oliver Legg
2006-Mar-21 17:42 UTC
[Rails] Instance variable shortcuts to fixture data are not working?
The way the fixtures in test changed sometime, for speed improvements. They should now be accessed as customers(:id), I think. Or there is an option you can change in the test_helper.rb On 21 Mar 2006, at 17:39, Sergei Serdyuk wrote:> Hi, > > I am following the Agile Web Development with Rails book and it looks > like either book is wrong or edge rails are broken. > > I am trying to access fixture data through instance shortcuts. I.e. > customers.yml through @customers and it is not assigned. > > Anybody knows why? > > Sergei > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails