From: Curt Hibbs Date: 2004-10-11T23:32:25+09:00 Subject: Rails Tutorial - I'm having a problem I'm stuck on step six of the rails tutorial: http://www.rubyonrails.org/show/TutorialStepSix After I follow the steps to add phone numbers and update template to display them, I browse to http://127.0.0.1/friends/display and I get the following error displayed in the browser: > NameError in Friends#display > Showing /friends/display.rhtml where line #8 raised uninitialized constant Person::Phone > 5:

> 6: <%= @person.name %>
> 7: > 8: <% for phone in @person.phones %> > 9: <%= phone.phone %>
> 10: <% end %> > 11: > > Show template trace > c:/ruby/lib/ruby/gems/1.8/gems/activerecord-0.9.5/lib/active_record/associat ions.rb:465:in `phones' > (erb):8:in `render_template' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_view/erb_template .rb:90:in `render_template' > c:/ruby/lib/ruby/gems/1.8/gems/actionpack-0.8.5/lib/action_view/abstract_tem plate.rb:34:in `render_file' [snip] Does anyone know why this is, and what I did wrong? Thanks, Curt