I want to redirect some of requests from http to https, and that is
working, but it don''t wanna redirect back from https to http
UNSECURED_ACTIONS is a
Any hints?
<code>
UNSECURED_ACTIONS = [ :signup, :login, :logout, :thanx, :index ]
def default_url_options(options)
# this is bad :(
UNSECURED_ACTIONS.include?(options[:action]) ? { :protocol =>
''http://'', :host => :host + '':3000'' } : {
:protocol => ''https://'',
:host => ''localhost'' }
end
</code>
thanx
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---