AUTHORS
- Michael Chu (1030)
- Tina Jiang (10)
CATEGORIES
- Airsoft (2)
- Austin (3)
- Books (9)
- Cooking For Engineers (19)
- Current Events (9)
- Deals (3)
- Dining (17)
- Fanpop (4)
- Food (683)
- Games (5)
- Hairy (6)
- Kitchen Gear (4)
- Life (23)
- Miscellaneous (5)
- Movies (15)
- Orthogonal Thought (6)
- Personal Computers (7)
- Photography (157)
- Rant (9)
- Ruby on Rails (2)
- San Francisco (5)
- Soap Making (4)
- Television (3)
- Texas (1)
- Things We Like (8)
- Travel (8)
- Wear or Not (1)
- Web 2.0 (9)
- What I Ate (717)
- Wikipedia (4)
- Windows Mobile (1)
- WordPress (1)
ARCHIVE
- September 2010 (8)
- August 2010 (32)
- July 2010 (34)
- June 2010 (31)
- May 2010 (35)
- April 2010 (35)
- March 2010 (33)
- February 2010 (34)
- January 2010 (33)
- December 2009 (30)
- November 2009 (31)
- October 2009 (30)
- September 2009 (31)
- August 2009 (34)
- July 2009 (34)
- June 2009 (34)
- May 2009 (33)
- April 2009 (32)
- March 2009 (42)
- February 2009 (38)
- January 2009 (57)
- December 2008 (40)
- November 2008 (30)
- October 2008 (33)
- September 2008 (22)
- August 2008 (5)
- July 2008 (5)
- June 2008 (11)
- May 2008 (13)
- April 2008 (10)
- March 2008 (29)
- February 2008 (18)
- January 2008 (28)
- December 2007 (1)
- November 2007 (4)
- October 2007 (5)
- September 2007 (10)
- August 2007 (14)
- July 2007 (10)
- June 2007 (9)
- May 2007 (21)
- April 2007 (21)
ACTIONS
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
