Just need help on what book to buy for ruby

Agile Web Development with Rails 2nd Ed

Brent Brent wrote:

And of course 'Programming ruby' if it's the ruby bits rather than
the rails stuff you want. http://www.amazon.com/Programming-Ruby-Pragmatic-Programmers-Second/ dp/0974514055

Given what you specified. I would also recommend "Programming Ruby"