how to get fields of a table in rails code example Example: how to get fields of a table in rails Model.column_names e.g. User.column_names