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.
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?
You’ll have to show us exactly what it is you are doing/trying to do.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.