Hi ! I am doing the following: redirect_to :protocol => ''https'', :action => ''paypal'', :controller => ''payment'' Looking at the log, I see this: Redirected to http://localhost:3002httpslocalhost:3002/payment/paypal How can I simply change protocol, keeping host and port the same ? Thanks ! François
redirect_to :protocol => ''https'', :action => params[''action''], :controller => params[''controller''] I havent tried that put it should pull the action and controller that the requested page origionally had. Mark On 9/6/05, François Beausoleil <fbeausoleil-IQIa899fVSs@public.gmane.org> wrote:> > Hi ! > > I am doing the following: > redirect_to :protocol => ''https'', :action => ''paypal'', > :controller => ''payment'' > > Looking at the log, I see this: > Redirected to http://localhost:3002httpslocalhost:3002/payment/paypal > > How can I simply change protocol, keeping host and port the same ? > > Thanks ! > François > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Mark Van Holstyn mvette13-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org http://lotswholetime.com _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2005-Sep-06 17:58 UTC
Re: Changing protocol in a redirect
Hello Mark ! Mark Van Holstyn said the following on 2005-09-06 11:39:> redirect_to :protocol => ''https'', :action => params[''action''], > :controller => params[''controller''] > > I havent tried that put it should pull the action and controller that > the requested page origionally had.Thanks for your answer, but I don''t think this wil cut it. I don''t want to redirect to the same action, I want another controller and action. I tried: redirect_to :protocol => ''https'' But it redirects like this: Redirected to http://localhost:3002httpslocalhost:3002/estimates/book_now There must be something I''m doing wrong, no ? Should I just assemble the parts myself ? Using url_for(:only_path) for example ? Thanks, François