> Hello,
> 
> I accidentally posted this to the "Ruby" forum when it should have gone
> here -- sorry.
> 
> 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://.

I assume you meant to say "http://"; ?

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

some_model_url(:scheme => 'https')

-philip

-- 
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-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to