rubyonrailsin

A Ruby and Rails talk

Saturday, March 27, 2010


[Rails] Re: Add all metods in ssl_required

by rubyonrailsin 0 comments

Tag


Share this post:
Design Float
StumbleUpon
Reddit

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

No comments:

Post a Comment

Subscribe feeds via e-mail

Blog Archive