exists?(conditions = :none)
Instance Public methods
Returns true if a record exists in the table that matches the
id or conditions given, or false otherwise. The
argument can take six forms:
Integer - Finds the record with this primary
key.
String - Finds the record with a primary key
corresponding to this string (such as '5').
Array - Finds the record that matches these
find-style conditions (such as ['name LIKE ?',
"%#{query}%"]).
Hash - Finds the record that matches these