Hi I just came across this bug too with authsub. I went up the stack and 
traced it to the polymorphic url generated by the url_for function. The 
URI::HTTPS class, (which is only about 2 lines of code in my edition of 
rails) may have been enhanced in a version later than rails 2.1.0 to 
include a uri_https_url function. (URI:HTTP contains what looks to be an 
analog of this - request_uri)

In any case, I'm not sure whether the HTTPS class in rails 2.1.0 is out 
of sync with the one that the authsub plugin was built with, or if there 
is an extra parameter that needs to be passed, etc.. However, there is a 
simple fix. Just put this in your controller:


  def uri_https_url (request_path)
    request_path.to_s
  end


Best,
Ismail Degani

Stuart Grimshaw wrote:
> On 15 Apr, 23:48, "[EMAIL PROTECTED]" <ESPN3.DL-
> [EMAIL PROTECTED]> wrote:
>> Could you post the code that is generating the stack?
>>
> 
> I'm using the Ruby Google Authsub plugin[1] from Stuart Coyle, it's a
> very early beta, and I'm just trying to follow the README file.
> 
>   def google_auth
>     auth = GoogleAuthSub.new(:next_url => 'http://
> ft.stuartgrimshaw.co.uk',
>       :scope_url => 'http://www.google.com/m8/feeds/',
>       :secure => false )
> 
>     redirect_to auth.request_url
>   end
> 
> 
> [1] http://www.cybertherial.com/weblog/?p=16

-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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