On Thu, Aug 20, 2009 at 7:57 PM, Jeffrey L. Taylor <[email protected]>wrote:
> > Quoting karthik k <[email protected]>: > > On Thu, Aug 20, 2009 at 2:05 PM, Jeffrey L. Taylor <[email protected] > >wrote: > [snip] > > > > Hi Jeffrey > > > > Thank you > > i will learn about named_scope > > > There is an excellent Railscast on named_scope. My Internet connection > won't > stay up long enough to check, but I think the URL is www.railscast.com. > > Jeffrey Hi Guys I tried to use named_scope and i am successful in doing that I need to know one thing about self Below used in definition Model Employee -------------- def self.list find(:all) end In some case it is used inside Model Employee -------------- def list self.find(:all) end So please let me know what is the reason behind this, using in two different way Guide me -- Karthik.k Mobile - +91-9894991640 > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

