Named routes raising exception


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.
tried to set up a route using map.home_url ‘’ in the routes.rb file.
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
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.


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs