Orthogonal Thought | Random musings from the creator of Cooking For Engineers and Lead Architect of Fanpop

AUTHORS

CATEGORIES

ARCHIVE

MySQL and Ruby on Rails datatypes

Posted 29 June, 2007 at 12:36pm by Michael Chu

One of the best features of Ruby on Rails is the ability to interact with database tables as objects using ActiveRecord. Sometimes documentation can be a bit spotty, but after searching for a little bit it's not hard to find the mapping from Rails Migration types to MySQL data types. I did find it more difficult to find out what happens if I already have an existing MySQL table. What Ruby class gets created with what MySQL column type? I didn't find it on the web, so I put together this list…
Click here to read the rest of
MySQL and Ruby on Rails datatypes

Ruby multi-line comments

Posted 22 May, 2007 at 12:05am by Michael Chu

For over a year now, I've been working in Ruby on Rails (mostly for Fanpop and more recently for Cooking For Engineers) and one of the things that I wished I could do in Ruby was block comments. Internet searches I performed last year didn't yield anything, so I gave up. Well, last week, I looked around again and found a solution.
Click here to read the rest of
Ruby multi-line comments

NAVIGATION

SEARCH