<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Slash Dot Dash: Rails 2 Upgrade Notes</title>
    <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Rolling on Rails</description>
    <item>
      <title>Rails 2 Upgrade Notes</title>
      <description>&lt;p&gt;Over the weekend I decided to try out Rails 2 by upgrading an existing site (http://www.trawlr.com/) from Rails 1.2.6 to Rails 2 &lt;span class="caps"&gt;RC2&lt;/span&gt;.&lt;/p&gt;


	&lt;h2&gt;Check for deprecations before you upgrade&lt;/h2&gt;


	&lt;p&gt;You may want to check your existing application for deprecated code before upgrading using the following rake task.&lt;/p&gt;


&lt;code&gt;lib/tasks/rails.rake&lt;/code&gt;
&lt;pre&gt;
desc "Checks your app and gently warns you if you are using deprecated code." 
task :deprecated =&amp;gt; :environment do
  deprecated = {
    '@params'    =&amp;gt; 'Use params[] instead',
    '@session'   =&amp;gt; 'Use session[] instead',
    '@flash'     =&amp;gt; 'Use flash[] instead',
    '@request'   =&amp;gt; 'Use request[] instead',
    '@env' =&amp;gt; 'Use env[] instead',
    'find_all'   =&amp;gt; 'Use find(:all) instead',
    'find_first' =&amp;gt; 'Use find(:first) instead',
    'render_partial' =&amp;gt; 'Use render :partial instead',
    'component'  =&amp;gt; 'Use of components are frowned upon',
    'paginate'   =&amp;gt; 'The default paginator is slow. Writing your own may be faster',
    'start_form_tag'   =&amp;gt; 'Use form_for instead',
    'end_form_tag'   =&amp;gt; 'Use form_for instead',
    ':post =&amp;gt; true'   =&amp;gt; 'Use :method =&amp;gt; :post instead'
  }

  deprecated.each do |key, warning|
    puts '--&amp;gt; ' + key
    output = `cd '#{File.expand_path('app', RAILS_ROOT)}' &amp;#38;&amp;#38; grep -n --exclude=*.svn* -r '#{key}' *`
    unless output =~ /^$/
      puts "  !! " + warning + " !!" 
      puts '  ' + '.' * (warning.length + 6)
      puts output
    else
      puts "  Clean! Cheers for you!" 
    end
    puts
  end
end
&lt;/pre&gt;

	&lt;p&gt;Use rake to execute the task.&lt;/p&gt;


&lt;pre&gt;
rake deprecated
&lt;/pre&gt;

	&lt;p&gt;With any luck you won&amp;#8217;t get many warnings; it should give you a rough estimate on how long your upgrade may take.&lt;/p&gt;


	&lt;h2&gt;Getting Rails 2&lt;/h2&gt;


	&lt;p&gt;First you need to get the &lt;span class="caps"&gt;RC2&lt;/span&gt; (or newer) tagged Rails source using rake. This downloads the Rails framework to your appliction&amp;#8217;s &lt;code&gt;vender/rails&lt;/code&gt; directory.&lt;/p&gt;


&lt;pre&gt;
rake rails:freeze:edge TAG=rel_2-0-0_RC2
&lt;/pre&gt;

	&lt;h3&gt;Upgrade issues&lt;/h3&gt;


	&lt;p&gt;After upgrading, it&amp;#8217;s worth running your test suite looking for any problems. The following are issues I ran into to get trawlr.com working.&lt;/p&gt;


	&lt;h4&gt;Singular resources now map to plural controllers &amp;#8211; Override by using the :controller option in &lt;code&gt;routes.rb&lt;/code&gt;&lt;/h4&gt;


&lt;code&gt;config/routes.rb&lt;/code&gt;
&lt;pre&gt;
# Singleton reader resource
map.resource :reader, :controller =&amp;gt; 'reader'
&lt;/pre&gt;

	&lt;h4&gt;&lt;code&gt;with_scope&lt;/code&gt; is now protected &amp;#8211; Use .send(:with_scope) to call method&lt;/h4&gt;


	&lt;p&gt;This caused an issue due to using the &lt;a href="http://blog.hasmanythrough.com/2006/08/19/magic-join-model-creation"&gt;magic join model&lt;/a&gt; pattern, although the fix is relatively simple.&lt;/p&gt;


&lt;pre&gt;
MyModel.send(:with_scope, args)
&lt;/pre&gt;

	&lt;h4&gt;asset_packager plugin broken &amp;#8211; Apply fix&lt;/h4&gt;


	&lt;p&gt;The fabulous asset_packager plugin required a quick change to get working again (single-line change).&lt;/p&gt;


&lt;pre&gt;
Index: vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb
===================================================================
--- vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb    (revision 86)
+++ vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb    (working copy)
@@ -37,7 +37,7 @@
     private
       # rewrite compute_public_path to allow us to not include the query string timestamp
       # used by ActionView::Helpers::AssetTagHelper
-      def compute_public_path(source, dir, ext, add_asset_id=true)
+      def compute_public_path(source, dir, ext = nil, add_asset_id=true)
         source = source.dup
         source &amp;lt;&amp;lt; ".#{ext}" if File.extname(source).blank?
         unless source =~ %r{^[-a-z]+://}
&lt;/pre&gt;

	&lt;p&gt;I still prefer this to the new Rails 2 asset merging as it also minifies JS and &lt;span class="caps"&gt;CSS&lt;/span&gt; files (including stripping comments) and also allows you to specify multiple asset &lt;em&gt;groups&lt;/em&gt; (for example one grouping for the main site, another for an iPhone version). A word of caution if you use asset_packager you cannot take advantage of the new Rails 2 asset servers (see below).&lt;/p&gt;


&lt;pre&gt;
# DOES NOT work with asset_packager
config.action_controller.asset_host = "http://asset%d.site.com" 
&lt;/pre&gt;

	&lt;h4&gt;Nested route helpers changed &amp;#8211; Must specifiy parent resource&lt;/h4&gt;


	&lt;p&gt;If you have any nested routes it&amp;#8217;s likely you will have to alter the named route helpers, for example &lt;code&gt;child_path&lt;/code&gt; is now &lt;code&gt;parent_child_path&lt;/code&gt;.&lt;/p&gt;


	&lt;h4&gt;&lt;code&gt;start_form_tag&lt;/code&gt; and &lt;code&gt;end_form_tag&lt;/code&gt; have been deprecated &amp;#8211; Quick fix is to replace with &lt;code&gt;form_tag&lt;/code&gt; and &lt;code&gt;&amp;lt;/form&amp;gt;&lt;/code&gt; respectively.&lt;/h4&gt;


&lt;pre&gt;
&amp;lt;%= form_tag articles_path %&amp;gt; 
  &amp;lt;%= text_field :article, :title %&amp;gt; 
  &amp;lt;%= submit_tag "Save" %&amp;gt; 
&amp;lt;/form&amp;gt;
&lt;/pre&gt;

	&lt;h4&gt;&lt;code&gt;render_without_layout&lt;/code&gt; has been deprecated &amp;#8211; Use &lt;code&gt;:layout =&amp;gt; false&lt;/code&gt; instead.&lt;/h4&gt;


&lt;pre&gt;
render :layout =&amp;gt; false
&lt;/pre&gt;

	&lt;h4&gt;restful_authentication plugin is broken &amp;#8211; Replace &lt;code&gt;redirect_to_url&lt;/code&gt; (deprecated) in &lt;code&gt;lib/authenticated_system.rb&lt;/code&gt; with to &lt;code&gt;redirect_to&lt;/code&gt;.&lt;/h4&gt;


&lt;pre&gt;
Index: authenticated_system.rb
===================================================================
--- authenticated_system.rb    (revision 86)
+++ authenticated_system.rb    (working copy)
@@ -94,7 +94,7 @@
     # Redirect to the URI stored by the most recent store_location call or
     # to the passed default.
     def redirect_back_or_default(default)
-      session[:return_to] ? redirect_to_url(session[:return_to]) : redirect_to(default)
+      session[:return_to] ? redirect_to(session[:return_to]) : redirect_to(default)
       session[:return_to] = nil
     end
&lt;/pre&gt;

	&lt;h2&gt;Optionally, rename your views&lt;/h2&gt;


	&lt;p&gt;Rails 2 includes some changes to the way views are named. Previously you may have had &lt;code&gt;show.rhtml&lt;/code&gt; and &lt;code&gt;show.rjs&lt;/code&gt; which now become &lt;code&gt;show.html.erb&lt;/code&gt; and &lt;code&gt;show.js.rjs&lt;/code&gt; to indicate the mime type and template engines used. You don&amp;#8217;t have to change your &lt;em&gt;old&lt;/em&gt; views, but the following rake task should make it a quick change if you decide to. For trawlr.com I chose to use the new format for any new view templates but left the existing ones as they were (I&amp;#8217;ll probably rename as changes are made on an individual basis).&lt;/p&gt;


&lt;code&gt;lib/tasks/rails.rake&lt;/code&gt;
&lt;pre&gt;
namespace 'views' do
  desc 'Renames all .rhtml views to .html.erb, .rjs to .js.rjs, .rxml to .xml.builder, and .haml to .html.haml'
  task 'rename' do
    Dir.glob('app/views/**/[^_]*.rhtml').each do |file|
      puts `svn mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
    end

    Dir.glob('app/views/**/[^_]*.rxml').each do |file|
      puts `svn mv #{file} #{file.gsub(/\.rxml$/, '.xml.builder')}`
    end

    Dir.glob('app/views/**/[^_]*.rjs').each do |file|
      puts `svn mv #{file} #{file.gsub(/\.rjs$/, '.js.rjs')}`
    end
    Dir.glob('app/views/**/[^_]*.haml').each do |file|
      puts `svn mv #{file} #{file.gsub(/\.haml$/, '.html.haml')}`
    end
  end
end
&lt;/pre&gt;

	&lt;h2&gt;Resources&lt;/h2&gt;


	&lt;p&gt;For more information on Rails 2 refer to the &lt;a href="http://weblog.rubyonrails.org/2007/9/30/rails-2-0-0-preview-release"&gt;preview release blog post&lt;/a&gt;. For $9 you can pick up a copy of &lt;a href="http://peepcode.com/products/rails2-pdf"&gt;Ryan Daigle&amp;#8217;s worthwhile Rails 2 &lt;span class="caps"&gt;PDF&lt;/span&gt; book available via peepcode&lt;/a&gt;.&lt;/p&gt;</description>
      <pubDate>Mon, 03 Dec 2007 22:59:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:57aa6e58-09e3-4b78-956f-dfab914cbc70</guid>
      <author>ben@slashdotdash.net (Ben)</author>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes</link>
      <category>Ruby on Rails</category>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Jesse</title>
      <description>&lt;p&gt;I am also curious why you chose to skip renaming partials with your rake task&amp;#8230;?&lt;/p&gt;</description>
      <pubDate>Thu, 28 Feb 2008 01:02:47 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:131a26d3-c826-4ac3-a61a-61bb064fbf71</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-380</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Felipe Giotto</title>
      <description>&lt;p&gt;Thanks!&lt;/p&gt;


	&lt;p&gt;Great post to help users to migrate to Rails 2 applications! This is just what I need to put my old restful_authentication back to work!&lt;/p&gt;


	&lt;p&gt;Felipe Giotto ;-)&lt;/p&gt;</description>
      <pubDate>Wed, 13 Feb 2008 10:28:43 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0440a05a-d961-4734-87ad-5ad3c67abb1e</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-377</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Mog</title>
      <description>&lt;p&gt;Thanks!&lt;/p&gt;


	&lt;p&gt;&amp;#8216;render_component&amp;#8217; is detected by &amp;#8216;component&amp;#8217;  =&amp;gt; &amp;#8216;Use of components are frowned upon&amp;#8217;.&lt;/p&gt;


	&lt;p&gt;Can we use &amp;#8216;render_component&amp;#8217; in Rails 2 ?&lt;/p&gt;</description>
      <pubDate>Fri, 08 Feb 2008 09:31:27 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d411868c-86e2-4ff0-bd6d-6b004cfa2df9</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-374</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Ahsan</title>
      <description>&lt;p&gt;It also detects &amp;#8216;find_all&amp;#8217; which is a valid method of the Enumerable mixin ;)&lt;/p&gt;</description>
      <pubDate>Mon, 21 Jan 2008 04:17:50 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4affb09e-94ec-44c5-a88a-839268037d3b</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-358</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Tom Harrison</title>
      <description>&lt;p&gt;One more thing for the list: object transactions (e.g. &amp;#8220;Model.transaction(@foo) do&amp;#8230;&amp;#8221; is bad, &amp;#8220;Model.transaction do &amp;#8230;&amp;#8221; is ok).  I guess a regex like /\.transaction\(/ would catch most of them.  This is a case that is documented in the code, but the deprecations page doesn&amp;#8217;t list it.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 21:19:53 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b7154b72-d648-4b6f-9d70-08e4a53aed1e</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-336</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Ben</title>
      <description>&lt;p&gt;&lt;code&gt;redirect_to_url&lt;/code&gt; is deprecated in Rails 2; use &lt;code&gt;redirect_to&lt;/code&gt; instead.&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 07:14:41 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:c75af722-df07-4b21-930d-2558a94f4930</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-333</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by saurabh purnaye</title>
      <description>&lt;p&gt;still i m getting some errors while redirection NoMethodError (undefined method `redirect_to_url&amp;#8217; for #):
    /app/controllers/test_controller.rb:14:in `__instance_exec0&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/object/extending.rb:52:in `send&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/object/extending.rb:52:in `instance_exec&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/prototype_helper.rb:581:in `initialize&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:905:in `new&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/base.rb:905:in `render_with_no_layout&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/layout.rb:270:in `render_without_benchmark&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in `render&amp;#8217;
    c:/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure&amp;#8217;
    c:/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_controller/benchmarking.rb:51:in `render&amp;#8217;&lt;/p&gt;</description>
      <pubDate>Fri, 04 Jan 2008 07:10:24 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a5156885-d1d8-49cb-bc34-70818f7992d8</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-332</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Ryan Waldron</title>
      <description>&lt;p&gt;Hey, you can eliminate false positives on find_all_by_* by changing this line:&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;'find_all'   =&amp;gt; 'Use find(:all) instead',&lt;/code&gt;&lt;/pre&gt;


	&lt;p&gt;to this&lt;/p&gt;


	&lt;pre&gt;&lt;code&gt;'find_all[^_]'   =&amp;gt; 'Use find(:all) instead',&lt;/code&gt;&lt;/pre&gt;</description>
      <pubDate>Fri, 28 Dec 2007 21:20:19 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5ebae1c0-59e5-48a9-9c1c-513a466f92f0</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-329</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Paul Goscicki</title>
      <description>&lt;p&gt;Any particular reason why helpers (like _form.rhtml) are not renamed to *.html.erb using the above script?&lt;/p&gt;</description>
      <pubDate>Tue, 25 Dec 2007 18:53:16 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:d25d4d9a-5341-4864-bf79-a32959a8dc42</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-318</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by div</title>
      <description>&lt;p&gt;How to use render in new version instead of     render(:partial=&amp;gt;&amp;#8216;list_categories&amp;#8217;) in rails 1.2.5&lt;/p&gt;</description>
      <pubDate>Wed, 19 Dec 2007 13:32:42 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:551f2dcd-5543-486a-aaa0-6ce9827e4602</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-313</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Scott Becker</title>
      <description>&lt;p&gt;Asset Packager &amp;#8211; the ext=nil fix you mention  has been in svn trunk since 11/04/07. :) The asset host issue should be resolved soon. Thanks! Also, Asset Packager now has a tracker, you can find it &lt;a href="http://code.itred.org/projects/assetpackager/tickets" rel="nofollow"&gt;here.&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 19 Dec 2007 05:09:04 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:0ef7873a-ca2f-4433-9c04-d47c773e9659</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-312</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Jon Maddox</title>
      <description>&lt;p&gt;Thanks for the hot tips. Heres a version of the rake task for GIT&lt;/p&gt;


&lt;pre&gt;
namespace 'views' do
  desc 'Renames all .rhtml views to .html.erb, .rjs to .js.rjs, .rxml to .xml.builder, and .haml to .html.haml'
  task 'rename' do
    Dir.glob('app/views/**/[^_]*.rhtml').each do |file|
      puts `git mv #{file} #{file.gsub(/\.rhtml$/, '.html.erb')}`
    end

    Dir.glob('app/views/**/[^_]*.rxml').each do |file|
      puts `git mv #{file} #{file.gsub(/\.rxml$/, '.xml.builder')}`
    end

    Dir.glob('app/views/**/[^_]*.rjs').each do |file|
      puts `git mv #{file} #{file.gsub(/\.rjs$/, '.js.rjs')}`
    end
    Dir.glob('app/views/**/[^_]*.haml').each do |file|
      puts `git mv #{file} #{file.gsub(/\.haml$/, '.html.haml')}`
    end
  end
end

&lt;/pre&gt;</description>
      <pubDate>Fri, 14 Dec 2007 06:30:09 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:25394c57-aeb9-4c54-bcc4-b420f523406b</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-305</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Rob Sanheim</title>
      <description>&lt;p&gt;You can also use &lt;a href="http://rubyforge.org/projects/multi-rails/" rel="nofollow"&gt;multi_rails&lt;/a&gt;, which will let you test against 1.2.6 and 2.0.1 as you make the changes to get compatibile.&lt;/p&gt;</description>
      <pubDate>Thu, 13 Dec 2007 16:03:13 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:b8ed23a1-fb98-4628-8ded-6ba154ee789b</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-304</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by psychic readings</title>
      <description>&lt;p&gt;This is GREAT! Thanks for the upgrade info,&lt;/p&gt;</description>
      <pubDate>Wed, 12 Dec 2007 13:42:43 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5b735690-b855-4e4c-a6a0-e680ab5c7040</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-301</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Jesper R&#248;nn-Jensen</title>
      <description>&lt;p&gt;One more thing:&lt;/p&gt;


	&lt;p&gt;There are quite some code that is moved to plugins in Rails 2.0&lt;/p&gt;


	&lt;p&gt;It would be good with a notification of these&amp;#8230;. You already added pagination, and there is also builder(?), auto_complete, acts_as_tree just to mention some examples.&lt;/p&gt;


	&lt;p&gt;Could the rake task be modified so that it automatically detects whether the plugin is included or not? It probably requires detection if a corresponding plugin name is loaded if a certain pattern is found.&lt;/p&gt;


	&lt;p&gt;I can&amp;#8217;t figure it out now, but if somebody would patch the code I think it would be of great help to everybody.&lt;/p&gt;


	&lt;p&gt;Thanks!
/Jesper&lt;/p&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:33:57 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:929e07df-2045-496a-96cd-cec6d6e51112</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-300</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Jesper R&#248;nn-Jensen</title>
      <description>&lt;p&gt;Thanks a lot for making this task. It runs directly on windows as well (at least on my laptop), where cygwin is installed.&lt;/p&gt;</description>
      <pubDate>Tue, 11 Dec 2007 15:25:43 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:44f3af77-3c73-43c1-9713-ed00ff815f08</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-299</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Ed</title>
      <description>FWIW: i added this to the grep command to filter out other temp SVN files:
&lt;code&gt;--exclude=.#*&lt;/code&gt;
&lt;br&gt;
so the whole command is:&lt;br&gt;
&lt;code&gt;grep -n --exclude=*.svn* --exclude=.#* -r '#{key}' *&lt;/code&gt;
&lt;br&gt;&lt;br&gt;
handy task &amp;#8211; thanks!</description>
      <pubDate>Mon, 10 Dec 2007 02:48:52 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:43d09f4d-4804-4f28-a340-87e5d57cbb93</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-297</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Farzad FARID</title>
      <description>&lt;p&gt;Hi, thanks for the task, but one rule seems to give some false warnings.&lt;/p&gt;


	&lt;ul&gt;
	&lt;li&gt;&amp;#8220;&lt;code&gt;find_all()&lt;/code&gt;&amp;#8221; is deprecated, but &amp;#8220;&lt;code&gt;find_all_by_FIELD()&lt;/code&gt;&amp;#8221; is not, because &amp;#8220;&lt;code&gt;find_by_FIELD(:all, ...)&lt;/code&gt;&amp;#8221; does not work in Rails 1.2.6 :)&lt;/li&gt;
	&lt;/ul&gt;


	&lt;p&gt;Using &lt;code&gt;'find_all\([^_]\|$\)'&lt;/code&gt; instead of &lt;code&gt;'find_all'&lt;/code&gt; seems to works.&lt;/p&gt;


	&lt;p&gt;Cheers.&lt;/p&gt;</description>
      <pubDate>Fri, 07 Dec 2007 16:04:30 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:5c1ea335-3f82-4a7d-b716-b9cf0339cbc3</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-294</link>
    </item>
    <item>
      <title>"Rails 2 Upgrade Notes" by Steve</title>
      <description>&lt;p&gt;Thanks for the rake task. Very handy!&lt;/p&gt;</description>
      <pubDate>Wed, 05 Dec 2007 14:21:32 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:a4783f65-c89e-4765-aa09-d78105be47ca</guid>
      <link>http://www.slashdotdash.net/articles/2007/12/03/rails-2-upgrade-notes#comment-286</link>
    </item>
  </channel>
</rss>
