Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: Core
new(attributes = nil) public

New objects can be instantiated as either empty (pass no construction parameter) or pre-set with attributes but not yet saved (pass a hash with key names matching the associated table column names). In both instances, valid attribute keys are determined by the column names of the associated table – hence you can’t have attributes that aren’t part of the table columns.


# Instantiates a single new object 'Jamie')
Show source
Register or log in to add new notes.