As a new comer to RoR, I started to follow the article
http://developer.apple.com/tools/developonrailsleopard.html. In short
you create to entities and one one-to-many relation linking them.
Everything was good until the establishment of the relation. I am
unable to go any further than "Linking Models Together" : I can create
the "vendors" mentionned in the exemple, and I can get an "event" to
look to. But when I try to create an "expense", I get a message
event.expenses.create(:vendor => vendor1, :amount => 75.00)
NoMethodError: undefined method `expenses' for #<Event:0x125e008>
Could anybody help me ? I have checked the classes files, everything
seems according to the article. I did checks on the database, the
table "expenses" has been created but is empty. The "id" fiels are
present in each of the tables... I don't see where to look to now.
Thanks in advance,