Prev | Current Page 573 | Next

Kevin Marshall, Chad Pytel, and Jon Yurek

"Pro Active Record: Databases with Ruby and Rails"

. . }, 248
each_full( ) { |msg| . . . }, 248
Email database, 203
embedded Ruby (ERb), 141
empty?( ), 248
encoding parameter, PostgreSQL, 15
enterprise-level functionality, 192??“193
enum columns, 213
eql?(object_to_compare), 227
ERb (embedded Ruby), 141
error methods, 144??“153
ActiveRecordError, 145
AdapterNotFound, 148
AdapterNotSpecified, 147
AssociationTypeMismatch, 146??“147
AttributeAssignmentError, 152
ConfigurationError, 152
ConnectionFailed, 148
ConnectionNotEstablished, 148
MultiparameterAssignmentErrors, 153
PreparedStatementInvalid, 150??“151
ReadOnlyRecord, 152
RecordNotFound, 149
RecordNotSaved, 149
SerializationTypeMismatch, 147
StaleObjectError, 151??“152
StatementInvalid, 149??“150
SubclassNotFound, 145??“146
errors( ), 254
establish_connection method, 10
establish_connection(connection_specificati
on = nil), 218
establishing connections to databases, 16
eval methods, 61
evaluate_condition(condition, record), 255
Evans, Clark, 184
Event logging, 190
:except option, 182
Exception class, 189
execute method, 32, 37, 56, 210
execute(sql, name = nil), 239
exists?(id), 218
exporting
comma separated value (CSV) format, 185
XML format, 182??“183
YAML format, 184
extend method, 120
extending Active Record, 109??“123
adding class methods, 120??“123
column_names array, 116??“117
metaprogramming, 110??“112
method_missing method, 112??“115
retrieving relationship names, 117??“119
F
farmer_id column, 53
feedback table, 170
find method, 21, 27, 33, 36, 42, 63, 152, 157,
175, 210
find operations, 149
find(*args), 218??“220
find_all_by method, 33
find_by method, 23, 33
find_by_sql method, 32, 37, 43, 149, 158, 176,
210??“211
find_by_sql(sql_query), 220
find_by_username method, 22
find_or_create_by method, 33
find_or_create_by_* dynamic finder, 23
find_with_rquery method, 111
find_without_rquery method, 111, 113??“114
Finder methods, 190
finder options, 77
finders
dynamic, 33??“34
nondynamic, 37??“38
finding source code, 188
Firebird, 11??“12
Firebird adapter, 9
Firebird database, 17
:first control, 27
first? method, 97
fixnum type, 181
fixtures, 139??“144
benefits of, 139??“141
formats, 142??“144
comma separated value (CSV), 142??“143
single file, 143??“144
YAML, 142
transaction support with, 141??“142
Fixtures.


Pages:
561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584