Displaying 1 result from an estimated 1 matches for "photo_com".
Did you mean:
photo_zoom
2006 Mar 20
11
has_many brings back ''uninitialized constant''
...st things first - I am new to ruby on rails (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_...