Wednesday, April 6, 2011

Ruby on Rails, mysql column type :text, What class is this as a ruby object?

你好,

When a column in mysql table is typed :text, how is this then treated in Ruby.

In other words, what is the class?

Is it a string?

From stackoverflow
  • Yes. It is a 'String'.

    Sam : >> c.content => "sdfsdf" >> c.content.class => String hehe silly question

0 comments:

Post a Comment