Ruby on Rails Wednesday, September 1, 2010

On Wed, Sep 1, 2010 at 10:22 AM, daze <dmonopoly10@gmail.com> wrote:
I recently upgraded to Rails 3, and this error has come up
ubiquitously:

DEPRECATION WARNING: Base.named_scope has been deprecated, please use
Base.scope instead.

Any ideas on how to get rid of it?  Or should I just wait for
something?

ActiveRecord's named_scope was changed to scope in Rails 3, and uses the new ActiveRecord query interface.
 
There's actually no place in my application where the code
"Base.named_scope" exists, so I assume the problem is inherent in gems
that haven't gotten up to speed with Rails 3 yet.

If you aren't using any named_scopes, then it sounds like you might want to isolate the problem to a specific gem or plugin and log a bug with the author. Try creating a new Rails 3 project and adding your gems one by one.
 

Someone on stackoverflow also posted this issue:
http://stackoverflow.com/questions/3333612/how-to-avoid-deprecation-warning-with-named-scope-rails-2-x-scope-rails-3-c

I'd appreciate any help.  Thanks in advance =].

Adam

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails

Thanks so much for all of your comments and thoughts. I have
personally decided that I will continue to use Debian as my
development and production servers due to it's stability. Since I'm
sticking with Debian, I decided to write down my process of installing
Rails 3 on Debian and all of the small gotchas that I ran into and
turn it into a blog post. For my particular application (which is very
basic and only has some tests written so far), I ran into two major
problems installing the gems when using bundler: 1) SQLite3 was out of
date and 2) Nokogiri needed some dependencies installed. So, below
you'll find my writeup of what I *think* is the proper way to install
Rails 3 on Debian Lenny.

I would love some feedback, so if you see anything that looks odd (or
just doesn't work on your system...mine isn't quite stock), please let
me know and I'll update my guide.

http://www.fangiotophia.com/journal/2010/8/31/random-act-of-stupidity-6-debian-rails-3-setup-guide.html

Thanks again for your responses to my question, there were very
helpful in my decision making.

Topher

On Aug 31, 4:15 pm, Greg Donald <gdon...@gmail.com> wrote:
> On Tue, Aug 31, 2010 at 3:23 PM, Marnen Laibow-Koser
>
> <li...@ruby-forum.com> wrote:
> > Interesting.  When I chose between Debian and Ubuntu about 4 years ago,
> > part of my reason for choosing Ubuntu was reading that Ubuntu's package
> > management was *more conservative* than Ubuntu's, and that as a result
> > Ubuntu packages were *more stable* than Debian packages.  Did something
> > change in those 4 years?
>
> > (I've used both Debian and Ubuntu in that time and not noticed much
> > difference.)
>
> Well..  in the 12 years I've been using Debian, it has never once left
> me with an un-bootable system.  The software is frozen for several
> months before a stable distro is released, and then updates only
> contain security fixes, not new features.  The only thing I've ever
> found more stable than Debian is BSD, FreeBSD in particular has been
> rock solid for me over the years.  I usually use FreeBSD (or OpenBSD
> if my hardware supports it) for my firewall servers where I don't even
> trust Linux.
>
> Ubuntu provides me with bleeding edge new versions of everything, just
> like you would want for a modern desktop, but in turn has left me with
> an un-bootable system many times.  Their recent choice to go ahead
> with Grub 2.0, for example, took down 5 developer machines where I
> work a few months back.. and that was the 10.04 LTS distro that is
> supposed to be long-term stable.
>
> I've never once had to "fix" a Debian system after performing updates.
>  Ubuntu I've fixed more times that I can count.
>
> I'm sure everyone's experience varies, but mine has been that Ubuntu
> has much newer versions, and as a result is less stable than Debian
> overall.
>
> --
> Greg Donald
> destiney.com | gregdonald.com

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Ruby on Rails



On Wed, Sep 1, 2010 at 7:07 AM, Peter Hickman <peterhickman386@googlemail.com> wrote:
Sorry but you blew it at "Rails Developer aims to leverage the
mindshare ". *LEVERAGE*, *MINDSHARE*. WTF are you talking about?

This is a community of programmers not suits, weasel speak is not
looked upon favourably. In fact I have now spent more time writing
this email than reading your site.

First impressions and understanding your market (or 'community' as you
call it) are important and for me you blew it.

Bye :)


From the bottom of my heart, thanks for pointing out how much I sounded like a weasel.  

I really should learn to remove "leverage" from my vocabulary when speaking with developers. Perhaps I spend too much time talking with clients these days... ;-)

Thanks again for the feedback. I hope you'll forgive me and review the site in more depth... when the time is right.

Cheers,
Robby

 

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.