form_tag: post to https

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

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.