I just installed rails 1.2.1 and am having trouble starting my
application when I define a singleton resource.  It loads up fine with
all my normal map.resources, but when I use map.resource, I get an
error.
For example, if I add this to routes.rb
map.resource :account
I get the following error:
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:936:in
`build'': undefined method `[]'' for :account:Symbol
(NoMethodError)
        from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:1161:in
`add_route''
        from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:1167:in
`add_named_route''
        from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:992:in
`method_missing''
        from
/var/www/dev.www.storeit/current/config/../config/routes.rb:3
        from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.1/lib/action_controller/routing.rb:1128:in
`draw''
        from
/var/www/dev.www.storeit/current/config/../config/routes.rb:1
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in
`load''
        from
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:489:in
`load''
         ... 20 levels...
        from
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/lib/mongrel/command.rb:211:in
`run''
        from
/usr/local/lib/ruby/gems/1.8/gems/mongrel-0.3.13.4/bin/mongrel_rails:231
        from /usr/local/bin/mongrel_rails:16:in `load''
        from /usr/local/bin/mongrel_rails:16
Is a singleton resource supported in rails 1.2.1?
Thanks
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---