<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-29280895.post5770143550610509379..comments</id><updated>2010-08-01T16:24:36.311-07:00</updated><category term='I'/><title type='text'>Comments on One way: Redirecting to HTTPS in Rails</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.swards.net/feeds/5770143550610509379/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/5770143550610509379/comments/default'/><link rel='alternate' type='text/html' href='http://www.swards.net/2006/12/redirecting-to-https-in-rails.html'/><author><name>Mark Swardstrom</name><uri>http://www.blogger.com/profile/13422017508414965589</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='25' height='32' src='http://1.bp.blogspot.com/_a1p7KnkWeLs/S6UNWw5-kjI/AAAAAAAAAmw/zmvrcdvfRsQ/S220/mark_after_ultimate_2_small.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-29280895.post-1236304319430690758</id><published>2010-08-01T16:24:36.311-07:00</published><updated>2010-08-01T16:24:36.311-07:00</updated><title type='text'>Hey Mark,

thanks for the article. I used it to bu...</title><summary type='text'>Hey Mark,&lt;br /&gt;&lt;br /&gt;thanks for the article. I used it to build a filter method I included in my ApplicationController Class&lt;br /&gt;&lt;br /&gt;before_filter :redirect_to_required_protocol&lt;br /&gt;&lt;br /&gt;def redirect_to_required_protocol&lt;br /&gt;  case self.class.to_s&lt;br /&gt;  when &amp;quot;LoginController&amp;quot;&lt;br /&gt;    require_https&lt;br /&gt;  else&lt;br /&gt;    require_http&lt;br /&gt;  end&lt;br /&gt;end&lt;br /&gt;&lt;br /&gt;So I can switch </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/5770143550610509379/comments/default/1236304319430690758'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/29280895/5770143550610509379/comments/default/1236304319430690758'/><link rel='alternate' type='text/html' href='http://www.swards.net/2006/12/redirecting-to-https-in-rails.html?showComment=1280705076311#c1236304319430690758' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.swards.net/2006/12/redirecting-to-https-in-rails.html' ref='tag:blogger.com,1999:blog-29280895.post-5770143550610509379' source='http://www.blogger.com/feeds/29280895/posts/default/5770143550610509379' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-60400339'/></entry></feed>
