Rails newbie here. If I have a mod开发者_StackOverflow社区el and a table associated with it, can I refer to the table's attributes??
Yes. ActiveRecord maps tables to your models.
You can inspect the official ActiveRecord tutorial: http://guides.rubyonrails.org/active_record_querying.html
Yes, ModelName.attribute_name should do it.
精彩评论