Displaying 1 result from an estimated 1 matches for "page39".
Did you mean:
page3
2008 Mar 15
1
error on belongs_to method.
...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:
slide= Slide.find 1
it give me the following error:
../slide.rb:2: syntax error, unexpected '';'', expecting kEND.
and the same with ../slide.rb:3
can anybody help me? if you can tell me how to debug rails, that will
be more better? thanks in advance.
--~--~---------~--~----~-----...