Ruby with mysql

I am new to Ruby software.

What are the software are needed to connect with ruby with mysql
database?

how to connect ruby with mysql database for insertion or updation?