I am trying to figure out why I am receiving the following error. I am
following an Apple Developers Rail Application tutorial.
event.expenses.create(:vendor => vendor1, :amount =>75.00)
NameError: undefined local variable or method `vendor1’ for
Here is what I have for the models
class Event < ActiveRecord::Base
validates_numericality_of :budget, :greater_than => 0.0
has_many :vendors, :through => :expenses
class Expense < ActiveRecord::Base
class Vendor < ActiveRecord::Base
has_many :events, :through => :expenses
I read another post where they had issues with Xcode not saving and
having to restart terminal. I have done both and everything looks
Thanks in advance for any help!