attribute_names()
Instance Public methods
Returns an array of names for the attributes available on this object.
1 2 3 4 5 6 | class Person < ActiveRecord::Base end person = Person. new person.attribute_names # => ["id", "created_at", "updated_at", "name", "age"] |
Please login to continue.