Forum: Ruby-Forum.com Creating variable

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
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.