Closed mediafinger closed 10 years ago
Same issue on: Showing /Users/andy/www/townbikes/app/views/reservations/index.html.erb where line #11 raised
And: /Users/andy/www/townbikes/app/views/bicycles/index.html.erb
It's because of the "Location: <%= @owner.location %>". I can't get the bicycle to relate to the location properly...
Read the last sentence of my initial posting in this issue again.
You have no "location" on your owner. You have "locations". And that is not what you want.
Error message and stack trace:
My guess: you have to change the relation from
has_many :locations
tohas_one :location
on the User model.