<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/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>has_many :thoughts: Rails 2.0 Compatibility Script</title>
    <link>http://blog.kineticweb.com/articles/2007/09/29/rails-2-0-compatibility-script</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Musings from a Ruby on Rails development team</description>
    <item>
      <title>Rails 2.0 Compatibility Script</title>
      <description>&lt;p&gt;X-posted from another blog (forget which, maybe Ruby Inside)... here is a lil script that will check your Rails apps for compatibility issues against Rails 2.0.&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://pastie.caboo.se/99900.txt?key=krcevozww61drdeza13e3a"&gt;http://pastie.caboo.se/99900.txt?key=krcevozww61drdeza13e3a&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;That is the pastie text link, in case you would like to wget/curl the file down to your local machine. Comment in the script also notes that you can run it using wget/curl, and gives the relevant commands. Wouldn&amp;#8217;t it be nice to include an alias for that? ;)&lt;/p&gt;


	&lt;p&gt;Also, below is an example of some output it gave me on an app I&amp;#8217;m currently working on with Rails 1.2.3&amp;#8230;&lt;/p&gt;


&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_shell "&gt;Your application doesn't seem ready to upgrade to Rails 2.0. Please take a
moment to review the following:

-- breakpoint server -----------------------------------------------------------

  The configuration option has been removed in favor of the better ruby-debug
  library.  (changeset 6627)

    gem install ruby-debug

  Remove the line(s) from configuration since the setting has no effect anymore.
  Instead, start `script/server` with the &amp;quot;-u&amp;quot; or &amp;quot;--debugger&amp;quot; option (or &amp;quot;-h&amp;quot;
  to see all the options).

  files:
  config/environments/development.rb:12:  config.breakpoint_server = true

-- pagination ------------------------------------------------------------------

  Pagination has been extracted from Rails core.  (changeset 6992)

    script/plugin install svn://errtheblog.com/svn/plugins/classic_pagination

  Alternative: you can replace your pagination calls with will_paginate (find it
  on http://rock.errtheblog.com/).

  files:
  app/controllers/admin/categories_controller.rb:14:  @category_pages, @categories = paginate :categories, :per_page =&amp;gt; 10&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

	&lt;p&gt;From the example above its clear that this script gives you at the very least some where to start. I can&amp;#8217;t imagine it will find everything. :) Now for that script that will convert all my Rails apps to Merb! ;)&lt;/p&gt;


	&lt;p&gt;Author Notes:
&amp;#8220;NOTE: this script does simple, regular expression searches. It might &lt;strong&gt;not&lt;/strong&gt; be right at all times. Consider this script just for informative purposes.&amp;#8221;&lt;/p&gt;</description>
      <pubDate>Sat, 29 Sep 2007 21:26:00 -0400</pubDate>
      <guid isPermaLink="false">urn:uuid:a4545b18-54d9-4df7-9de2-3048302dc24b</guid>
      <author>Justin Reagor</author>
      <link>http://blog.kineticweb.com/articles/2007/09/29/rails-2-0-compatibility-script</link>
      <category>Rails</category>
      <category>script</category>
      <category>dependencies</category>
      <trackback:ping>http://blog.kineticweb.com/articles/trackback/64</trackback:ping>
    </item>
  </channel>
</rss>
