Entries Tagged 'Ruby' ↓

Learning Ruby on Rails

I have been prolonging this long enough and finally decided to start reading the book I got for Christmas regarding Ruby on Rails. With all of the hype around this language, one has to wonder, why I am not trying this out? What is with all of the big fuss? Could I benefit from this language?

Well, I am here to start answering some of those questions. Ruby on Rails, has shocked me right out of the gate on how well it separates and forces you to separate the Business Logic from your User Interface. This is something you are taught to do in Web Development but many do not put it in practice.

My only nit-pick so far is I haven’t been able to get the MySQL interaction within Ruby to work just yet. I must be missing a package of some sort, but I am sure I will get it worked out shortly. In fact, I did just solve it. I was missing the libmysql-ruby library.

The book I am working with is ‘Ruby on Rails: Up and Running’ by Tate & Hibbs. It is an O’Reilly publication and I must admit, I love their books. They are easy to read and well broken up into chapters that are easy to manage in a few sittings. The book isunder 200 pages and assumes you know a bit of programming (not necessarily in Ruby, but in at least one language). It also assumes you know how to work with MySQL and you are capable of installing Ruby and Rails by yourself.

These assumptions are good, but I wish it would have pointed out I would need the MySQL library as that would have saved me an hour or two of going ‘WTF…’ why is ‘rake migrate’ displaying “rake aborted! Mysql::Error: Lost connection to MySQL server during query: SELECT version FROM schema_info”?

Anyways, I have that part up and running and so now I can continue on with the book. But to sum up my post, get the book, prepare yourself for problems and using Google or something similar to find the answer, as the book isn’t a problem solver, it is pretty much a tutorial.