Re: Re: Upgrading to Rails 3

Jeffrey L. Taylor
Sat, 07 Apr 2012 13:08:53 -0000

Quoting Gurdipe Dosanjh
<rhomobileapps-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:
> Hi All,
>
> Re: Upgrading to Rails 3
>
> I am working on a rails application I need to upgrade to the latest version
> of Ruby and Ruby on Rails.
>
> It is currently using:
>
> Ruby version 1.8.7 and
> Ruby on Rails version 2.3.5
>
> Is there any information, tutorial, guides etc. I can follow
>
> Any help would be greatly appreciated
>

In addition to the other advice, overriding ActiveRecord callbacks was
deprecated in 2.3.8.  So replace

  def before_save
    # whatever
  end

with:

  before_save :whatever

private

  def whatever
    # whatever
  end

HTH,
  Jeffrey