txt file, 155
MySQL, 9, 12??“13, 17
N
name( ), 252
:name option, 55
naming columns and models, 212
native_database_types( ), 244
new( ), 250
new method, 6
new_attributes method, 183
new_record?( ), 228
new(attributes=nil) { |self if block_given?| . . .
}, 220
new(base), 245
new(macro, name, options, active_record),
252
new(name, default, sql_type = nil, null =
true), 236
nil field, 44
nil value, 20, 128
?– INDEX 275
Find it faster at http://superindex.apress.com/
nondynamic finders, 37??“38
N-tier applications, 162
:nullify attribute, 79
number?( ), 237
O
object relational mapping (ORM), 2??“3, 18,
192
object_id values, 135
Object.blank? method, 85
ObjectGraph (Og), 197??“199
objects
attributes of, 6
creating, 6
relationships among, 22??“24
retrieving from databases, 21??“22
observe method, 92
observe(*models), 250
observed_class( ), 250
observed_classes( ), 250
observed_subclasses( ), 250
observers, 91??“92
observers( ), 250
observers=(*observers), 250
OFFSET clause, 32
:offset option, 32??“33
Og (ObjectGraph), 197??“199
omap type, 142
:on => :create method, 85
:on => :save method, 85
:on => :update method, 85
:on option, 84, 86
on_base( ), 248
on(attribute), 248
:only option, 182
OpenBase, 13??“14
OpenBase adapter, 9
OpenBase database, 17
optimistic locking, 41
options( ), 252
:options option, 52
options_include_default?(options), 245
Oracle, 14
Oracle adapter, 10
Oracle database, 17
ORDER BY clause, 99
order method, 98
:order option, 31, 33
order parameter, 31, 99
Orders model, 55
ORM (object relational mapping), 2??“3, 18,
192
overriding assumptions, 20??“21
P
paginating results, 213??“214
parent_column parameter, 101, 102
password attribute, 107
password parameter, 11??“16
Perl, 44
pessimistic locking, 42
PHP, 44
plug-ins, 193??“194
pluralize_table_name attribute, 171
pluralize_table_names attribute, 166??“167
pluralize_table_names parameter, 21
:polymorphic attribute, 78??“79
port parameter, 12??“16
position column, 95
position method, 94
PostgreSQL, 10, 14??“15, 17
prefect_primary_key?(table_name = nil), 235
prepared statements, 207
PreparedStatementInvalid error, 150??“151
price method, 56
primary_key( ), 221
:primary_key option, 52
primary_key_prefix_type class attribute, 175
primary_key_prefix_type method, 165
primary_key_prefix_type setting, 164
primary_key(name), 246
primay_key_prefix_type attribute, 164??“165
private methods, 190
proc method, 84
proc statement, 137
procedures, stored, 179??“181
project_development database, 19
protected methods, 190
public methods, 191
Q
quantity method, 56
quote_column_name(name), 240
quote_string(value), 240
quoted_date(value), 241
quoted_false( ), 241
quoted_true( ), 241
quote(value, column = nil), 240
R
railsroot/log directory, 153
raise clause, 144
rake db:migrate method, 51, 53??“54
rake db:schema:dump task, 170
rake task, 48, 56, 211
raw_connection( ), 235
reading (R) task, 3
reading records
:conditions options, 28??“29
dynamic finders, 33??“34
:from option, 32
:group option, 31??“32
:include parameter, 29, 31
:joins option, 32
?– INDEX 276
:limit option, 32??“33
:lock option, 33
:offset option, 32??“33
:order parameter, 31
:readonly option, 33
:select option, 31
readonly?( ), 228
:readonly => false option, 33
:readonly => true option, 33
:readonly option, 33
ReadOnlyRecord error, 152
realtedID attribute, 102
reconnect!( ), 235
RecordNotFound error, 79, 149
RecordNotSaved error, 25, 149
records
creating, 25??“26
deleting, 35??“37
reading, 27??“34
:conditions options, 28??“29
dynamic finders, 33??“34
:from option, 32
:group option, 31??“32
:include parameter, 29??“31
:joins option, 32
:limit option, 32??“33
:lock option, 33
:offset option, 32??“33
:order parameter, 31
:readonly option, 33
:select option, 31
selecting random from databases, 207
updating, 34??“35
validation of, 211??“212
RedHill Consulting, 210
reflect_on_aggregation(aggregation), 251
reflect_on_all_aggregations( ), 251
reflect_on_all_associations(macro = nil), 251
reflect_on_association(association), 251
reflections( ), 251
related_id method, 103
relationships
general discussion, 22??“24
retrieving names of, 117??“119
reload( ), 228
RemoteDatabase class, 202
remove_column method, 54
remove_column(table_name,
column_name), 244
remove_connection(klass=self), 221
remove_from_list method, 96
remove_index(table_name, options = {}), 244
removing columns, 53??“54
rename_column(table_name,
column_name, options = {}), 244
rename_table(name, new_name), 244
Representation State Transfer (REST), 194
requires_reloaded?( ), 235
rescue clause, 144
reset_column_information( ), 221
reset_sequence!(table, column, sequence =
nil), 239
respond_to?(method, include_priv=false),
228
REST (Representation State Transfer), 194
RESTful interfaces, 194
results, paginating, 213??“214
retrieving objects from databases, 21??“22
revisions_for method, 123
right_column parameter, 101, 102
Role class definition, 22
ROLLBACK statement, 38, 40
rollback_db_transaction( ), 239
root method, 99, 100
root? method, 104
:root option, 182
RQuery::Conditions object, 112
Ruby Gem system, 8
ruby migrate.
Pages:
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584