Named routes raising exception

Hi,

I’m trying to follow some of the Rails Recipies, in particular the
authentication one. In the logout action there is redirect_to home_url.
I’ve
tried to set up a route using map.home_url ‘’ in the routes.rb file.
That
seems to cause an error

undefined local variable or method `home’ for #AdminController:0x3ab97f0

I understand the power and convenience of named routes, and that’s why I
want to get them working rather than just using redirect_to ‘’. (Though
just
using that works perfectly).

I think the problem is with my routes.rb file, but I’m no expert so I’d
appreciate any advice that you guys have to give.

Chris