Hi All,
I've got a small problem with map.root in the following code:
map.root :controller => "site_manager", :action => :index
It would appear that, for whatever reason, it isn't calling the "index" action on my controller and my "@sites" var isn't getting set for the view. It simply throws a "nil object" error. In the short term I've solved it with "@sites ||= Site.find(:all)" inside the view. Howevever, I'd like to know why it might be failing in the first place. Thoughts?
It is noteworthy that when I manually navigate to "/sitemanager" or "/ site_manager" everything works fine. It simply appears to be a map.root issue.
Best