Re: Re: Upgrading to Rails 3

Gurdipe Dosanjh
Sun, 08 Apr 2012 08:25:30 -0000

Hi Jodi,

Thanks for this great point about testing and plugins that need to be
upgraded.  Its really helpful

Kind Regards

Gurdipe

On 7 April 2012 15:30, Jodi Showers
<jodi-vRiTP4Lz4TuakBO8gow8eQ@public.gmane.org> wrote:

> 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
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "Ruby on Rails: Talk" group.
> > To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > To unsubscribe from this group, send email to
>
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
> >