How to have *_url generate urls with https:// protocol

E

Errol Siegel

Hello,

I am using *_path in views and *_url in controllers (with redirect_to,
for example). It is my understanding that this is generally considered
a good practice.

I want to use my app using https, and thought it would work that way as
long as I loaded the app by browsing to https://my.app.com. However, it
appears that even if I do this, redirect_to some_model_url generates a
url with a protocol of https://.

How do I get *_url to generate a url with https:// for the protocol?

Regards,
Errol
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,792
Messages
2,569,639
Members
45,350
Latest member
fadmo

Latest Threads

Top