Hello, I am having problem learning how to define relationships. Here is
what I have so far
class Editora < ActiveRecord::Base
class Livro < ActiveRecord::Base
So I wanted to test the relation on the console
livro = Livro.new( :nome => “Test” )
Then I went on to check the relation
I expected to get nil, but got “undefined method”. So what did I do
wrong, and how am I supposed to define and test these relations?
Appreciate any help.