Re: Re: Upgrading to Rails 3

Jodi Showers
Sat, 07 Apr 2012 14:30:57 -0000

I suggest you get your tests in gear if not already

get a core group (start with models, then controllers, minimum of models)
passing in 2.3.5

then upgrade

you''ll find a great number of plugins and gems will need to be upgraded
- and some will have to be hand patched if you cannot find a suitable
replacement
Jodi

On 2012-04-07, at 9:08 AM, Jeffrey L. Taylor wrote:

> 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