<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Switching From restful_authentication to authlogic</title>
	<atom:link href="http://jrmehle.com/2009/09/02/switching-from-restful_authentication-to-authlogic/feed/" rel="self" type="application/rss+xml" />
	<link>http://jrmehle.com/2009/09/02/switching-from-restful_authentication-to-authlogic/</link>
	<description>Through the Eyes of a Dork</description>
	<lastBuildDate>Sat, 12 Jun 2010 17:15:09 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Dan Laffan</title>
		<link>http://jrmehle.com/2009/09/02/switching-from-restful_authentication-to-authlogic/comment-page-1/#comment-34900</link>
		<dc:creator>Dan Laffan</dc:creator>
		<pubDate>Sat, 12 Jun 2010 17:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://jrmehle.com/?p=647#comment-34900</guid>
		<description>Hi Jared,

Thank you so much for your instructions on removing Restful_Authentication in favor of AuthLogic.

I am developing a site for a company (who are operating in stealth mode right now) and I applied the changes to their site.  The RoR site is hosted on Heroku.  The site refused to restart when authentication system updates were applied, and eventually I found the solution (after two full days of hunting around).  If your Heroku site won&#039;t restart after you transition to AuthLogic from Restful_Authentication, you should

(A) do a backup of your development site, including your local git folder.
(B) Remove your git folder and recreate it (git init, etc.).
(C) Push your site back up onto Heroku using the -f (force) flag to forcibly replace what is there now.  
(D) Apply any database changes using the usual &quot;Heroku rake db:migrate&quot;.

There are two very big warnings to accompany this:
1.  Blowing your git directory away will cause you to lose your git history, and unless your project is being developed by a one-man-band, that won&#039;t go down well with your colleagues.
2.  Blowing the Heroku copy of your site away will cause your users to be unable to re-login.  I found that I had to delete the users and force recreation of entirely fresh user profiles.  My hunch is that even though you could go into your system as an admin and change their passwords for them, the existing password_salt will be incompatible with AL.  

These changes were fine in my case as I switched from RA to AL before we went live, so I was effectively still in development on the Heroku server. 

Jared – if you have any thoughts or suggestions on how people could avoid these pitfalls I&#039;m sure I and your other readers will be pleased to read them.

Best regards,

Dan</description>
		<content:encoded><![CDATA[<p>Hi Jared,</p>
<p>Thank you so much for your instructions on removing Restful_Authentication in favor of AuthLogic.</p>
<p>I am developing a site for a company (who are operating in stealth mode right now) and I applied the changes to their site.  The RoR site is hosted on Heroku.  The site refused to restart when authentication system updates were applied, and eventually I found the solution (after two full days of hunting around).  If your Heroku site won&#8217;t restart after you transition to AuthLogic from Restful_Authentication, you should</p>
<p>(A) do a backup of your development site, including your local git folder.<br />
(B) Remove your git folder and recreate it (git init, etc.).<br />
(C) Push your site back up onto Heroku using the -f (force) flag to forcibly replace what is there now.<br />
(D) Apply any database changes using the usual &#8220;Heroku rake db:migrate&#8221;.</p>
<p>There are two very big warnings to accompany this:<br />
1.  Blowing your git directory away will cause you to lose your git history, and unless your project is being developed by a one-man-band, that won&#8217;t go down well with your colleagues.<br />
2.  Blowing the Heroku copy of your site away will cause your users to be unable to re-login.  I found that I had to delete the users and force recreation of entirely fresh user profiles.  My hunch is that even though you could go into your system as an admin and change their passwords for them, the existing password_salt will be incompatible with AL.  </p>
<p>These changes were fine in my case as I switched from RA to AL before we went live, so I was effectively still in development on the Heroku server. </p>
<p>Jared – if you have any thoughts or suggestions on how people could avoid these pitfalls I&#8217;m sure I and your other readers will be pleased to read them.</p>
<p>Best regards,</p>
<p>Dan</p>
]]></content:encoded>
	</item>
</channel>
</rss>
