Topic: Rails using wrong protocol when building URLS

I'm thoroughly confused on why rails is generating bad paths. I'm using apache as a proxy to mongrel. I've set a request header variable in the SSL virtual host on apache like so.

RequestHeader set X_FORWARDED_PROTO "https"

When I print out the header everything seems set properly. Even request.ssl? returns true. Yet form tags use 'http' instead of 'https' and redirects do the same. My routes are setup as the default. Anybody have any ideas?

Re: Rails using wrong protocol when building URLS

You've probably got this solved by now, but are you using a full URI string in your redirects and your form tags or are you using a hash and letting Rails build the url?