method

id?

rails latest stable - Class: ActiveRecord::AttributeMethods::PrimaryKey
id?()
public

Queries the primary key column’s value. If the primary key is composite, all primary key column values must be queryable.