<?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: Keeping up with the train &#8211; Lots of work for little features</title>
	<atom:link href="http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/</link>
	<description></description>
	<lastBuildDate>Wed, 29 Apr 2009 09:09:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Tiran Kenja</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/comment-page-1/#comment-21494</link>
		<dc:creator>Tiran Kenja</dc:creator>
		<pubDate>Wed, 29 Apr 2009 09:09:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/#comment-21494</guid>
		<description>Looking back in my Subversion it seems that it was mostly fixing reference to code that is no longer in Rails. Specifically I changed auth_helper.rb like so:

&lt;pre lang=&quot;diff&quot;&gt;
Index: auth_helper.rb
===================================================================
--- auth_helper.rb	(revision 647)
+++ auth_helper.rb	(revision 863)
@@ -1,11 +1,11 @@
 module AuthHelper
-
+  
   # For theme support. Idea from Typo.
   def search_paths(path)
     [&quot;#{path}/theme/#{this_auth[:theme]}/&quot;,
     ]
   end
-
+  
   def full_template_path(template_path, extension)
     template_path_dirs = template_path.split(&#039;/&#039;)
     dir = template_path_dirs[0]
@@ -17,7 +17,7 @@
     end
     super
   end
-
+  
   # Taken from the webrick server
   module Utils
     if !const_defined? &quot;RAND_CHARS&quot;
@@ -32,60 +32,64 @@
       ret
     end
     module_function :random_string
-
+    
     # define a regexp for valid IPv4 host
     def valid_ipv4_host_regex
       zero_to_254 = &quot;([0-9][0-9]?&#124;1[0-9]{2}&#124;2[0-4][0-9]&#124;25[0-4])&quot;
       one_to_254  = &quot;([1-9][0-9]?&#124;1[0-9]{2}&#124;2[0-4][0-9]&#124;25[0-4])&quot;
-
+      
       /\A#{one_to_254}\.#{zero_to_254}\.#{zero_to_254}\.#{one_to_254}\z/
     end
     module_function :valid_ipv4_host_regex
-
+    
   end
-
+  
   # Show user informations using Ajax. Can be used on static pages / cached pages.
   def ajax_account_infos()
     &quot;&quot; + javascript_tag(&#039;function showloginform() {&#039;+ 
-        remote_function(:update =&gt; &quot;accountinfo&quot;, :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }) +
-        &#039; document.getElementById(\&#039;post_login\&#039;).focus();}&#039;) + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+
-        link_to(auth_icon(&#039;buddy&#039;), auth_url) + &quot;&lt;/div&gt;&quot; +
-        javascript_tag(&quot;new Ajax.Updater(&#039;accountinfo&#039;, &#039;/auth/remoteinfo&#039;, {asynchronous:true});&quot;)
+    remote_function(:update =&gt; &quot;accountinfo&quot;, 
+    :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }, 
+    :success =&gt; &quot;document.getElementById(\&#039;post_login\&#039;).focus();&quot;) + &quot;}&quot;) + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+
+    link_to(auth_icon(&#039;buddy&#039;), auth_url) + &quot;&lt;/div&gt;&quot; +
+    javascript_tag(&quot;new Ajax.Updater(&#039;accountinfo&#039;, &#039;/auth/remoteinfo&#039;, {asynchronous:true});&quot;)
   end
-
+  
   # Show user information, don&#039;t use for static or cached page!
   def account_infos()
     &quot;&quot; + javascript_tag(&#039;function showloginform() {&#039;+ 
-        remote_function(:update =&gt; &quot;accountinfo&quot;, :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }) +
-    &#039; document.getElementById(\&#039;post_login\&#039;).focus();}&#039;) + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+
+    remote_function(:update =&gt; &quot;accountinfo&quot;, 
+    :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }, 
+    :success =&gt; &quot;document.getElementById(\&#039;post_login\&#039;).focus();&quot;) + &quot;}&quot;) +
+     &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+
     render(:partial =&gt; &quot;auth/remoteinfo&quot;) + &quot;&lt;/div&gt;&quot;
   end
-
+  
   # Javascript version to show user information. Can be used on static pages / cached pages.
   def js_account_infos()
     &quot;&quot; + javascript_tag(&#039;function showloginform() {&#039;+ 
-        remote_function(:update =&gt; &quot;accountinfo&quot;, :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }) +
-    &#039; document.getElementById(\&#039;post_login\&#039;).focus();}&#039;) + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot; +
+    remote_function(:update =&gt; &quot;accountinfo&quot;, 
+    :url =&gt; { :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; }, 
+    :success =&gt; &quot;document.getElementById(\&#039;post_login\&#039;).focus();&quot;) + &quot;}&quot;) + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot; +
     &quot;&lt;script src=\&quot;/auth/jsinfo\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;&quot;+
     &#039;&lt;script type=&quot;text/javascript&quot;&gt;displayAccountInfo();&lt;/script&gt;&#039; + &quot;&lt;/div&gt;&quot;
   end
-
+  
   # store current uri in the ccokies
   # we can return to this location by calling return_location
   def store_location
     cookies[:return_to] = {:value =&gt; request.request_uri, :expires =&gt; nil }
   end
-
+  
   # Loading spinner indicator icon tag
   def spinner_tag(id = &#039;ident&#039;)
     image_tag(&#039;auth/spinner.gif&#039;, :id=&gt;&quot;#{id}_spinner&quot;, :align =&gt; &#039;absmiddle&#039;, :border=&gt; 0, :style=&gt; &#039;display: none;&#039;, :alt =&gt; &#039;loading...&#039; )
   end
-
+  
   # auth_generator&#039;s images tags
   def auth_icon(name)
     image_tag(&quot;auth/#{name}.png&quot;, :align =&gt; &#039;absmiddle&#039;, :border =&gt; 0, :alt =&gt; name)
   end
-
+  
   # image tag for user
   def user_icon(user)
     if @app[:gravatar] == true
@@ -99,9 +103,9 @@
       auth_icon(&#039;buddy&#039;)
     end
   end
-
+  
   def user_logged_in?
     not @user.nil? and @user.ident == true
   end
-
+  
 end
&lt;/div&gt;&lt;/div&gt;&lt;/pre&gt;

Also I fixed a small deprecation in auth_helper.rb by replacing redirect_to_url with redirect_to</description>
		<content:encoded><![CDATA[<p>Looking back in my Subversion it seems that it was mostly fixing reference to code that is no longer in Rails. Specifically I changed auth_helper.rb like so:</p>

<div class="wp_syntax"><div class="code"><pre class="diff" style="font-family:monospace;">Index: auth_helper.rb
===================================================================
<span style="color: #888822;">--- auth_helper.rb	<span style="">&#40;</span>revision <span style="">647</span><span style="">&#41;</span></span>
<span style="color: #888822;">+++ auth_helper.rb	<span style="">&#40;</span>revision <span style="">863</span><span style="">&#41;</span></span>
<span style="color: #440088;">@@ -<span style="">1</span>,<span style="">11</span> +<span style="">1</span>,<span style="">11</span> @@</span>
 module AuthHelper
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # For theme support. Idea from Typo.
   def search_paths<span style="">&#40;</span>path<span style="">&#41;</span>
     <span style="">&#91;</span>&quot;#<span style="">&#123;</span>path<span style="">&#125;</span>/theme/#<span style="">&#123;</span>this_auth<span style="">&#91;</span>:theme<span style="">&#93;</span><span style="">&#125;</span>/&quot;,
     <span style="">&#93;</span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   def full_template_path<span style="">&#40;</span>template_path, extension<span style="">&#41;</span>
     template_path_dirs = template_path.split<span style="">&#40;</span>'/'<span style="">&#41;</span>
     dir = template_path_dirs<span style="">&#91;</span><span style="">0</span><span style="">&#93;</span>
<span style="color: #440088;">@@ -<span style="">17</span>,<span style="">7</span> +<span style="">17</span>,<span style="">7</span> @@</span>
     end
     super
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # Taken from the webrick server
   module Utils
     if !const_defined? &quot;RAND_CHARS&quot;
<span style="color: #440088;">@@ -<span style="">32</span>,<span style="">60</span> +<span style="">32</span>,<span style="">64</span> @@</span>
       ret
     end
     module_function :random_string
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+    </span>
     # define a regexp for valid IPv4 host
     def valid_ipv4_host_regex
       zero_to_254 = &quot;<span style="">&#40;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span>?|<span style="">1</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span><span style="">&#123;</span><span style="">2</span><span style="">&#125;</span>|<span style="">2</span><span style="">&#91;</span><span style="">0</span>-<span style="">4</span><span style="">&#93;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span>|<span style="">25</span><span style="">&#91;</span><span style="">0</span>-<span style="">4</span><span style="">&#93;</span><span style="">&#41;</span>&quot;
       one_to_254  = &quot;<span style="">&#40;</span><span style="">&#91;</span><span style="">1</span>-<span style="">9</span><span style="">&#93;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span>?|<span style="">1</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span><span style="">&#123;</span><span style="">2</span><span style="">&#125;</span>|<span style="">2</span><span style="">&#91;</span><span style="">0</span>-<span style="">4</span><span style="">&#93;</span><span style="">&#91;</span><span style="">0</span>-<span style="">9</span><span style="">&#93;</span>|<span style="">25</span><span style="">&#91;</span><span style="">0</span>-<span style="">4</span><span style="">&#93;</span><span style="">&#41;</span>&quot;
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+      </span>
       /\A#<span style="">&#123;</span>one_to_254<span style="">&#125;</span>\.#<span style="">&#123;</span>zero_to_254<span style="">&#125;</span>\.#<span style="">&#123;</span>zero_to_254<span style="">&#125;</span>\.#<span style="">&#123;</span>one_to_254<span style="">&#125;</span>\z/
     end
     module_function :valid_ipv4_host_regex
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+    </span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # Show user informations using Ajax. Can be used on static pages / cached pages.
   def ajax_account_infos<span style="">&#40;</span><span style="">&#41;</span>
     &quot;&quot; + javascript_tag<span style="">&#40;</span>'function showloginform<span style="">&#40;</span><span style="">&#41;</span> <span style="">&#123;</span>'+ 
<span style="color: #991111;">-        remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span><span style="">&#41;</span> +</span>
<span style="color: #991111;">-        ' document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;<span style="">&#125;</span>'<span style="">&#41;</span> + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+</span>
<span style="color: #991111;">-        link_to<span style="">&#40;</span>auth_icon<span style="">&#40;</span>'buddy'<span style="">&#41;</span>, auth_url<span style="">&#41;</span> + &quot;&lt;/div&gt;&quot; +</span>
<span style="color: #991111;">-        javascript_tag<span style="">&#40;</span>&quot;new Ajax.Updater<span style="">&#40;</span>'accountinfo', '/auth/remoteinfo', <span style="">&#123;</span>asynchronous:true<span style="">&#125;</span><span style="">&#41;</span>;&quot;<span style="">&#41;</span></span>
<span style="color: #00b000;">+    remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, </span>
<span style="color: #00b000;">+    :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span>, </span>
<span style="color: #00b000;">+    :success =&gt; &quot;document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;&quot;<span style="">&#41;</span> + &quot;<span style="">&#125;</span>&quot;<span style="">&#41;</span> + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+</span>
<span style="color: #00b000;">+    link_to<span style="">&#40;</span>auth_icon<span style="">&#40;</span>'buddy'<span style="">&#41;</span>, auth_url<span style="">&#41;</span> + &quot;&lt;/div&gt;&quot; +</span>
<span style="color: #00b000;">+    javascript_tag<span style="">&#40;</span>&quot;new Ajax.Updater<span style="">&#40;</span>'accountinfo', '/auth/remoteinfo', <span style="">&#123;</span>asynchronous:true<span style="">&#125;</span><span style="">&#41;</span>;&quot;<span style="">&#41;</span></span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # Show user information, don't use for static or cached page!
   def account_infos<span style="">&#40;</span><span style="">&#41;</span>
     &quot;&quot; + javascript_tag<span style="">&#40;</span>'function showloginform<span style="">&#40;</span><span style="">&#41;</span> <span style="">&#123;</span>'+ 
<span style="color: #991111;">-        remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span><span style="">&#41;</span> +</span>
<span style="color: #991111;">-    ' document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;<span style="">&#125;</span>'<span style="">&#41;</span> + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+</span>
<span style="color: #00b000;">+    remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, </span>
<span style="color: #00b000;">+    :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span>, </span>
<span style="color: #00b000;">+    :success =&gt; &quot;document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;&quot;<span style="">&#41;</span> + &quot;<span style="">&#125;</span>&quot;<span style="">&#41;</span> +</span>
<span style="color: #00b000;">+     &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot;+</span>
     render<span style="">&#40;</span>:partial =&gt; &quot;auth/remoteinfo&quot;<span style="">&#41;</span> + &quot;&lt;/div&gt;&quot;
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # Javascript version to show user information. Can be used on static pages / cached pages.
   def js_account_infos<span style="">&#40;</span><span style="">&#41;</span>
     &quot;&quot; + javascript_tag<span style="">&#40;</span>'function showloginform<span style="">&#40;</span><span style="">&#41;</span> <span style="">&#123;</span>'+ 
<span style="color: #991111;">-        remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span><span style="">&#41;</span> +</span>
<span style="color: #991111;">-    ' document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;<span style="">&#125;</span>'<span style="">&#41;</span> + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot; +</span>
<span style="color: #00b000;">+    remote_function<span style="">&#40;</span>:update =&gt; &quot;accountinfo&quot;, </span>
<span style="color: #00b000;">+    :url =&gt; <span style="">&#123;</span> :controller =&gt; &quot;auth&quot;, :action =&gt; &quot;remotelogin&quot; <span style="">&#125;</span>, </span>
<span style="color: #00b000;">+    :success =&gt; &quot;document.getElementById<span style="">&#40;</span>\'post_login\'<span style="">&#41;</span>.focus<span style="">&#40;</span><span style="">&#41;</span>;&quot;<span style="">&#41;</span> + &quot;<span style="">&#125;</span>&quot;<span style="">&#41;</span> + &quot;&lt;!-- account info --&gt; &lt;div id=\&quot;accountinfo\&quot;&gt;&quot; +</span>
     &quot;&lt;script src=\&quot;/auth/jsinfo\&quot; type=\&quot;text/javascript\&quot;&gt;&lt;/script&gt;&quot;+
     '&lt;script type=&quot;text/javascript&quot;&gt;displayAccountInfo<span style="">&#40;</span><span style="">&#41;</span>;&lt;/script&gt;' + &quot;&lt;/div&gt;&quot;
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # store current uri in the ccokies
   # we can return to this location by calling return_location
   def store_location
     cookies<span style="">&#91;</span>:return_to<span style="">&#93;</span> = <span style="">&#123;</span>:value =&gt; request.request_uri, :expires =&gt; nil <span style="">&#125;</span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # Loading spinner indicator icon tag
   def spinner_tag<span style="">&#40;</span>id = 'ident'<span style="">&#41;</span>
     image_tag<span style="">&#40;</span>'auth/spinner.gif', :id=&gt;&quot;#<span style="">&#123;</span>id<span style="">&#125;</span>_spinner&quot;, :align =&gt; 'absmiddle', :border=&gt; <span style="">0</span>, :style=&gt; 'display: none;', :alt =&gt; 'loading...' <span style="">&#41;</span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # auth_generator's images tags
   def auth_icon<span style="">&#40;</span>name<span style="">&#41;</span>
     image_tag<span style="">&#40;</span>&quot;auth/#<span style="">&#123;</span>name<span style="">&#125;</span>.png&quot;, :align =&gt; 'absmiddle', :border =&gt; <span style="">0</span>, :alt =&gt; name<span style="">&#41;</span>
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   # image tag for user
   def user_icon<span style="">&#40;</span>user<span style="">&#41;</span>
     if @app<span style="">&#91;</span>:gravatar<span style="">&#93;</span> == true
<span style="color: #440088;">@@ -<span style="">99</span>,<span style="">9</span> +<span style="">103</span>,<span style="">9</span> @@</span>
       auth_icon<span style="">&#40;</span>'buddy'<span style="">&#41;</span>
     end
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
   def user_logged_in?
     not @user.nil? and @user.ident == true
   end
<span style="color: #991111;">-</span>
<span style="color: #00b000;">+  </span>
 end
<span style="color: #991111;">&lt;/div&gt;&lt;/div&gt;</span></pre></div></div>

<p>Also I fixed a small deprecation in auth_helper.rb by replacing redirect_to_url with redirect_to</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/comment-page-1/#comment-21485</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Wed, 29 Apr 2009 00:20:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.codedivision.com/modules/wordpress/2008/01/22/keeping-up-with-the-train-lots-of-work-for-little-features/#comment-21485</guid>
		<description>Hey, after upgrading to Rails 2.1 i think i go into the same trouble like you regarding the auth_generator. Can you post or email me some hints or a patch about wha you have changed to get i working again?

All the best,
Sebastian</description>
		<content:encoded><![CDATA[<p>Hey, after upgrading to Rails 2.1 i think i go into the same trouble like you regarding the auth_generator. Can you post or email me some hints or a patch about wha you have changed to get i working again?</p>
<p>All the best,<br />
Sebastian</p>
]]></content:encoded>
	</item>
</channel>
</rss>
