[Rails] Re: restricting force_ssl to one controller
How are you generating the URLs for the links?
If you are using something like this:
projects_path
You can change it to this, which will generate a fully qualified URL (with host and protocol):
projects_url
And to explicitly break out of HTTPS, you can do the following:
project_url(:protocol => :http)
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/9586b1d2-763b-4d46-8de5-fcc1d06b0731%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home