Re: undefined method `first'' for :sessions:Symbol

Josh Susser
Tue, 29 Aug 2006 18:05:30 -0000

Chris Hall wrote:
> from the looks of it, you''ve got something going on inside your
> routes.rb file that the generator doesn''t like...i would start
there.

Yes, you''re missing a route. That missing "first" method is
from the
default fixtures - every model gets fixtures named "first" and
"second".
I got this the other day when I was using map.resources in routes.rb but
had forgotten to freeze my app to edge Rails.

--
Josh Susser
http://blog.hasmanythrough.com

--
Posted via http://www.ruby-forum.com/.