I know how to setup a roo_url using map.root in “routes.rb”.
The issue I’m currently having is as follows:
I walking through this Rails cast regarding Authlogic:
I decided that I make my map.root the “login” page, that is, the
index.html.erb of the user_sessions_controller.
So, what I did is typed the following in the “routes.rb”:
map.root :controller => “user_sessions”
But, get the following: http://pastie.org/1050272
When I changed:
@user_sessions = UserSession.all
@user_sessions = UserSession.find[:all], I got the following:
Provided that, for example I have a users_controller, and when in
“routes.rb” I do:
map.root :controller => “users”, I get the expected output and it works
Isn’t that weird?
Appreciate your support on this.