Ryan,  If you are using or can use passenger to serve your production
env, then an alternative that would make this a non-issue would be to
use passenger to serve your development env as well.  That way you'd
be able to use ssl in dev env just as you would in prod env.  Another
benefit would be that you'd also be able to test your prod env setup
(ie subdomain, virtual-host, passenger/web-server, etc) by having a
similar setup for your dev env.

Jeff

On Mar 26, 11:28 am, Robert Head <[email protected]> wrote:
> class SecureAreaController < ApplicationController
>
>   protected
>
>     def ssl_required?
>       Rails.env.production?
>     end
>
> end
>
> class CreditCardController < SecureAreaController
>
>   ...
>
> end
> --
> Posted viahttp://www.ruby-forum.com/.

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

Reply via email to