Displaying 1 result from an estimated 1 matches for "photos_id".
Did you mean:
photo_id
2006 Mar 20
11
has_many brings back ''uninitialized constant''
...ils (ruby, too), so
I''m figuring this is just a basic newbie error.
I''m creating a basic photography website. And I have two tables with a
relationship:
photos:
- id (set up as PK)
- title
- shutter
- aperture
- date
- the_order
...etc
photo_comments:
- id (set up as a PK)
- photos_id (set up as a FK)
- author
- date
- comment
...etc
In my photo.rb model file i have this:
class Photo < ActiveRecord::Base
has_many :photo_comment
# other code where I use ''find'' to get the photo info
end
This is all I have in my photo_comment.rb model file:
class Photo_comme...