Hello,
Which parameters should I pass to form_tag to force it to post to https?
I tried this:
form_tag {:action => ''someaction'', :protocol =>
''https''}
But it gave just the action URL, not https. I don''t get an error and
looking
at the code from url_for does not help me either, :protocol seems to be the
right parameter to pass?
Regards,
Bart
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
Bart Braem wrote:> Which parameters should I pass to form_tag to force it to post to https? > I tried this: > form_tag {:action => ''someaction'', :protocol => ''https''} > But it gave just the action URL, not https. I don''t get an error and looking > at the code from url_for does not help me either, :protocol seems to be the > right parameter to pass?Add :only_path => false. -- We develop, watch us RoR, in numbers too big to ignore. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---