Forum: Ruby-Forum.com Creating variable

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
60208ba771a7e04e306aecfb4be3286c?d=identicon&s=25 Davicín .. (zaid)
on 2008-01-12 14:07
Good morning,

I am beginning to develop a ruby part of a web. I
I have the driver code "book" and I spend their ID in the variable
Book.current_book.id, but gives me the following error.

undefined method `current_book' for Book:Class

How do I define the variable to my tests?

Thank you
This topic is locked and can not be replied to.