[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2010-05-20 Thread Carter Gilchrist
ad...@fotocera.com wrote: > I am generating a URL for use with GoogleCheckout. I have a method in > a model that uses the visitors shopping cart to construct an xml > request to GoogleCheckout, in that request i need to include a > callback url that GoogleCheckout can use to contact my webapp. I a

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-17 Thread ad...@fotocera.com
I am generating a URL for use with GoogleCheckout. I have a method in a model that uses the visitors shopping cart to construct an xml request to GoogleCheckout, in that request i need to include a callback url that GoogleCheckout can use to contact my webapp. On Aug 16, 11:07 am, Matt Jones wro

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-16 Thread Matt Jones
As in many cases, if it's difficult to do in Rails, it's probably wrong. Can you give more detail on why you're generating URLs in a model rather than in the controller/view that's sending them to the user? --Matt Jones On Aug 15, 9:22 am, "ad...@fotocera.com" wrote: > This only works for insta

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread ad...@fotocera.com
Yea i guess it just seems silly to create a separate class who's only purpose is to include ActionController::UrlWriter, especially since the rails documentation says that you can simply call ActionController::UrlWriter.xxx_path. On Aug 15, 9:32 am, Frederick Cheung wrote: > On Aug 15, 2:22 pm,

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread Frederick Cheung
On Aug 15, 2:22 pm, "ad...@fotocera.com" wrote: > This only works for instance methods, my problem is that I need to be > able to access _path from a class method... meaning: Well there's nothing stopping you bundling up your url generation stuff into its own class and then do UrlGenerator

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread ad...@fotocera.com
This only works for instance methods, my problem is that I need to be able to access _path from a class method... meaning: class Foo include ActionController::UrlWriter def self.generate login_path :host => 'example.com' end end ActionController::Routing::Routes.named_routes.install(Foo)

[Rails] Re: ActionController::UrlWriter bug -- need help URGENTLY, thanks!

2009-08-15 Thread Frederick Cheung
On Aug 15, 1:52 pm, "ad...@fotocera.com" wrote: > So i've been banging my head against this for the better part of the > last 5 hours and I have concluded that in my sleep deprived state I'm > missing something really obvious and should just ask for help. > > I need to be able to access named r