Hi, I'd like to force_ssl on all the requests on my application, but not
when the subdomain user is foo. How can I do this?
The best way would be something like (in the application controller):
force_ssl :unless => proc {|request| request.subdomain == 'foo'}
But from what I read from the doc (
http://api.rubyonrails.org/classes/ActionController/ForceSSL/ClassMethods.html#method-i-force_ssl
) the only options are "only" and "except" for the given actions.
Any hint?
--
Posted via http://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