Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, what is actually deprecated? just find_all(..) and find_first()? Thanks for clearing this up. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
ray wrote:> Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, > what is actually deprecated? just find_all(..) and find_first()? > Thanks for clearing this up.I have never heard of a find_all or the others. I have always used something like find(:all). You can say find(:first) and even find(:one). I''m not sure if these are deprecated for Rails 2.0.2, I heard that some plugins were going to be deprecated. Not sure if this helps, but. . . -S -- Posted via http://www.ruby-forum.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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, That''s right - the dynamic finders (find_by_* and find_all_by_*) are not depreciated, but find_all and find_first are in favour of find(:all) and find(:first). Steve On 4 Mar, 21:27, ray <rayquez...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, > what is actually deprecated? just find_all(..) and find_first()? > Thanks for clearing this up.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
You should just use find(:all), and find(:first) Why worry about the others when they''re either depreciated, or you think they could be? They could end up getting depreciated later anyway? On Mar 5, 10:27 am, ray <rayquez...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, > what is actually deprecated? just find_all(..) and find_first()? > Thanks for clearing this up.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Also, remember that find_by and find_all_by are not actually methods. That pattern is recognized inside method_missing and signifies that you want to have Rails add methods such as find_by_username("some_username"). This method does not exist until runtime. I imagine that find_all and find_first were deprecated to avoid confusion, and possibly to support future options other than :first and :all. Basically, using one find method and passing it options is cleaner than separate methods such as with find_all and find_first. Why have two methods when one reduces complexity and is more flexible? On Mar 4, 5:06 pm, Jonzo <j.fant...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> You should just use find(:all), and find(:first) > > Why worry about the others when they''re either depreciated, or you > think they could be? They could end up getting depreciated later > anyway? > > On Mar 5, 10:27 am, ray <rayquez...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, > > what is actually deprecated? just find_all(..) and find_first()? > > Thanks for clearing this up.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Thanks. On Mar 4, 5:01 pm, Steve Bartholomew <st...-LWB5c3/XHbdBDgjK7y7TUQ@public.gmane.org> wrote:> Hi, > > That''s right - the dynamic finders (find_by_* and find_all_by_*) are > not depreciated, butfind_alland find_first are in favour of > find(:all) and find(:first). > > Steve > > On 4 Mar, 21:27, ray <rayquez...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Is find_all_by deprecated and/or find_first_by for 2.0.2? If not, > > what is actually deprecated? justfind_all(..) and find_first()? > > Thanks for clearing this up.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org 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 -~----------~----~----~----~------~----~------~--~---
Hi If anybodies interested , I have got ruby on rails running with Openedge 10 on suse linux --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---