Displaying 1 result from an estimated 1 matches for "sgl1".
Did you mean:
sgl
2008 Mar 15
1
error on belongs_to method.
I followed the Ruby on Rails up and running book published by Orielly.
there are three DB tables, photo, slideshow, and slide
the Slide class in slide.rb is like this:
class Slide < ActiveRecord::Base
belongs_to :photo :foreign_key =>photo_id
belongs_to :slideshow :foreign_key=>slideshow_id
end
I inserted the sample data into database. When I trying to run the
command on page39: