Yeah I deleted the "index" page.  From the error it goes beyond that.


On Jun 17, 10:00 am, Maurício Linhares <[email protected]>
wrote:
> Have you deleted the index.html file under the public folder?
>
> -
> Maurício 
> Linhareshttp://codeshooter.wordpress.com/|http://twitter.com/mauriciojr
>
>
>
> On Wed, Jun 17, 2009 at 10:53 AM, gberz3<[email protected]> wrote:
>
> > 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
--~--~---------~--~----~------------~-------~--~----~
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