I have a situation where I am generating links in an SSL secured area (no subdomain) to a non SSL page (with a subdomain). The certificate doesn''t cover subdomains, so everytime someone clicks on the link to a https:// page where SSL isn''t allowed there is a certificate error. Now users can click okay, and then they are redirected to the http:// page, but I would like to create the link directly to http:// rather than https:// I''m using the ssl_requirement plugin. Is there a way to do this? Thanks, N --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
> I''m using the ssl_requirement plugin. Is there a way to do this? > > Thanks, > NHi, we use the same plugin at https://www.digiprof.fr/login, we experienced the same problems. The main gotcha, is that you are certainly using some_resource_path in your link_to instead of some_resource_url. Because with _path, the protocol used is the one of the current page because it actually generates relative paths. Using _url, the protocol of the page generated can be different as it generates absolute paths. Have you also edited routes.rb to add the correct protocol? -- French training using VoD: http://www.digiprof.fr -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
We''re actually having to use URL for because of the subdomain plugin creates malformed urls for nested resources :-( On Dec 15, 12:53 pm, Fernando Perez <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I''m using the ssl_requirement plugin. Is there a way to do this? > > > Thanks, > > N > > Hi, we use the same plugin athttps://www.digiprof.fr/login, we > experienced the same problems. The main gotcha, is that you are > certainly using some_resource_path in your link_to instead of > some_resource_url. > > Because with _path, the protocol used is the one of the current page > because it actually generates relative paths. Using _url, the protocol > of the page generated can be different as it generates absolute paths. > > Have you also edited routes.rb to add the correct protocol? > > -- > French training using VoD:http://www.digiprof.fr > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Fixed - thanks Fernando to get me on the right track. Once I looked up protocol in routes I found this post and solved my problem: http://siannopollo.blogspot.com/2007/08/rails-and-ssl-https.html --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---