[Facebooker-talk] routes.rb definitions not working???

Mike Mangino mmangino at elevatedrails.com
Fri Apr 4 08:41:55 EDT 2008


create_wishlist_path isn't a valid path. You want to do a POST to  
wishlists_path()

There was an old version of routing for Facebook that used these non- 
standards path, but that hasn't existed for months :)

Mike

On Apr 3, 2008, at 6:12 PM, Marco Tully wrote:
> 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
>
>
>
>
> _______________________________________________
> Facebooker-talk mailing list
> Facebooker-talk at rubyforge.org
> http://rubyforge.org/mailman/listinfo/facebooker-talk

--
Mike Mangino
http://www.elevatedrails.com





More information about the Facebooker-talk mailing list