May 3, 2008
Generic-user-small Alan Bonde 1 post

Topic: Rails for PHP Developers / Errors running methods on page 125

I haven’t been able to get the proper results with the IRB using the “meeting_path” or “meeting_url” methods. I get the following results.


C:\ruby\work\user_group>ruby script/console
Loading development environment (Rails 2.0.2)
>> meeting = Meeting.find(1)
=> #<Meeting id: 1, meets_on: "2007-12-06", location: "University Library", desc
ription: "Rails Hackfest", created_at: "2008-04-30 16:29:33", updated_at: "2008-
04-30 16:32:22">
>> meeting_path(:id => meeting.id)
NoMethodError: undefined method `meeting_path' for #<Object:0x27bf9ec>
        from (irb):2

I get the correct results when I implement them in the index.html.erb file as shown on page 126.

Any ideas?

Win XP, Rails 2.0.2, Ruby 1.8.6

1 post