[Facebooker-talk] routes.rb definitions not working???
Marco Tully
marcotully at gmail.com
Thu Apr 3 19:12:23 EDT 2008
I get an "Error while loading page" to show up. ActionView::TemplateError
(undefined local variable or method `create_wishlist_path'. I have been
getting all types of these errors weather it is create_wishlist_path or
new_wishlist_path, or gifts_path. None of them seem to be working. No idea
why?
Actually, after looking through my development log, some of them seem to be
working while others are clearly not recognized, but for some reason, the
ones that are working are not being displayed to the facebook canvas. That
is when I get a "Error while loading page" No idea why.
On Thu, Apr 3, 2008 at 3:29 PM, Mike Mangino <mmangino at elevatedrails.com>
wrote:
> Can you explain what you are trying to do? map.resource :gifts does in
> fact work, as does map.root :controller=>"wishlists"
>
> What error do you see?
>
> Mike
>
>
> On Apr 3, 2008, at 5:09 PM, Marco Tully wrote:
>
> > Hello Eveyone,
> >
> > I am new here, and am have no idea how to setup routes in the routes.rb
> > file while using fbml. The regular
> >
> > map.resources :gifts
> > map.resources :wishlists
> > map.resources :invitations
> > map.resources :comments
> >
> > does not work.
> >
> > This tutorial
> > http://rfacebook.wordpress.com/2008/02/04/quickstartfacebooker/
> >
> > says to create a map.root, such as the one mentioned "map.root
> > 'workshop'". Other places mention adding
> >
> > :conditions => {:canvas=>true,:method=>:gets}.
> >
> >
> > I have tried
> >
> > map.root :controller => ="wishlists", :action => "index"
> >
> > and it does not work.
> >
> > And the other routes are not working either. What is the correct way to
> > declare facebooker routes?
> >
> > Cheers!!
> >
> > Marco
> > _______________________________________________
> > Facebooker-talk mailing list
> > Facebooker-talk at rubyforge.org
> > http://rubyforge.org/mailman/listinfo/facebooker-talk
> >
>
> --
> Mike Mangino
> http://www.elevatedrails.com
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/facebooker-talk/attachments/20080403/810ce7db/attachment-0001.html
More information about the Facebooker-talk
mailing list