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 B. 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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs