Ruby on Rails Tuesday, August 30, 2011

Why does the generated rails model doesn't have attributes? How does
the rails know what attributes a model has?

In railstutorials.org says that the ActiveRecord scans the columns of
the associated table of the model and thru that it can know the
attributes a model has. Is there more info about this?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment