How to use mysql in rails

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.

On 6/7/07, DBC User [email protected] wrote:

anything really useful for what I want to do (or may be I didn’t
understand).

Thanks.

For Use SQL :

http://api.rubyonrails.com/classes/ActiveRecord/Base.html

for association with SQL :

http://api.rubyonrails.com/classes/ActiveRecord/Associations/ClassMethods.html

All is write into. It very complete


Cyril M.

DBC User wrote:

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:


Cheers,

  • Jacob A.