Wow!  That appears to have fixed it.  I *know* I tried that before.
Oh well, thanks!

On Jun 17, 10:03 am, Colin Law <[email protected]> wrote:
> 2009/6/17 gberz3 <[email protected]>:
>
>
>
> > Hi All,
>
> > I've got a small problem with map.root in the following code:
>
> >     map.root :controller => "site_manager", :action => :index
>
> Try removing the :action =>:index specification (ie just spec the
> controller), or use "index" instead of :index.  I don't know why these
> would fix it but I have seen suggestions that they may.
>
> Colin
>
>
>
> > 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
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to