my bad, i forgot to rake migrate after i changed the code.
On Oct 12, 3:27 pm, "Kyle"
<urbanplan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hey everyone, im a new RoR user and i am running into a glitch at page
> 41 of the RoR: up and running book photo share example. I am using OSX
> 10.4, locomotive, and PHPmyadmin through MAMP.
>
> in the book it says to see the model in action.
>
>
>
> >> slide = Slide.find 1
> ...
> >> slideshow = slide.slideshow
> ...
> >> slideshow.slides.each {|slide| puts slide.photo.filename}when i
enter in the last line slideshow.slides.each {|slide| puts
> slide.photo.filename} I get the following:
>
> NoMethodError: undefined method `slides'' for
#<Slideshow:0x2427cac>
> from
>
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/base.rb:1792:in
> `method_missing''
> from
>
/Applications/Locomotive2/Bundles/standardRailsSept2006.locobundle/powerpc/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/associations/association_proxy.rb:110:in
> `method_missing''
> from (irb):11
>
> but i have followed the book really closely. any help as to what i am
> missing or may have forgot? Everything else had worked up till now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---