I am looking for some documentation on how to use mysql in rails. Only command I know is ''model.find'' this will find the row by primary key. I would like to read about all the other commands available to me to use. I want to search the model for last name is like a parameter, how can I do that? I would really appriciate if someone can point me to a link or documentation on it? I did a seach on Google and I didn''t find anything really useful for what I want to do (or may be I didn''t understand). Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 6/7/07, DBC User <dbcuser-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I am looking for some documentation on how to use mysql in rails. Only > command I know is ''model.find'' this will find the row by primary key. > I would like to read about all the other commands available to me to > use. > I want to search the model for last name is like a parameter, how can > I do that? > > I would really appriciate if someone can point me to a link or > documentation on it? I did a seach on Google and I didn''t find > anything really useful for what I want to do (or may be I didn''t > understand). > > Thanks. > > > > >For Use SQL : api.rubyonrails.com/classes/ActiveRecord/Base.html for association with SQL : api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html All is write into. It very complete -- Cyril Mougel --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
DBC User wrote:> I am looking for some documentation on how to use mysql in rails. Only > command I know is ''model.find'' this will find the row by primary key. > I would like to read about all the other commands available to me to > use. > I want to search the model for last name is like a parameter, how can > I do that? > > I would really appriciate if someone can point me to a link or > documentation on it? I did a seach on Google and I didn''t find > anything really useful for what I want to do (or may be I didn''t > understand).What you''re asking for is really basic stuff. Get a copy of Agile Webdevelopment With Rails and all will become clear. In the meantime check out the API docs. The question to your answer is listed under the find method on this page: api.rubyonrails.org/classes/ActiveRecord/Base.html -- Cheers, - Jacob Atzen --~--~---------~--~----~------------~-------~--~----~ 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 groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---