326 | Index
address book, Globalize example of, 258–268
advanced database features, 109–116
aggregators, 39
AJAX, secure fallback, 135
alias_method method, 34
aliasing, 70
all? predicate, 37
alternative template engines, 282–284
Amazon S3 (Simple Storage Service) case
study, 231–235
Ambition, 273
American Standard Code for Information
Interchange (see ASCII)
analysis, black-box, 148–151
ANALYZE TABLE command, 171
anonymous functions, 36
any? predicate, 37
AOP (aspect-oriented programming), 32
Apache Portable Runtime (APR), 299
Apache servers, 318
application databases, 109
application_backtrace method, 66
applications
ActionMailer, 183
ActiveRecord, applying in, 287
ActiveSupport, 57
Core Extensions, 60–75
dependencies, 57
deprecation, 58
Inflector, 59
JSON, 59
Whiny Nil, 60
architecture scalability, 173–181
benchmarking, 161–164
Borges, 26
DabbleDB, 27
Heckle, 2
importing, 309
initialization, 75
L10n (localization), 250
Globalize example, 258–268
interface/resource
translation, 250–255
locale-specific settings, 256
model translation, 257
Mongrel, 78, 108
multi-application projects, 313–315
Seaside, 26
security design, 127–137
servers, 319
state, 195
APR (Apache Portable Runtime), 299
architecture
Amazon S3 (Simple Storage Service) case
study, 233
MySQL Cluster, 122
Representational State Transfer (REST)
benefits of, 205–209
overview of, 185–187
representations, 193–195
resources, 190–193
RESTful Rails, 209–231
statelessness, 195–205
verbs, 187–190
scalability, 173–181
security
canonicalization, 143
cross-site request forgery
(CSRF), 141–143
cross-site scripting (XSS), 139–141
sessions, 137–139
web issues, 137–144
shared-nothing, 197
Array methods
*, 46
extract_options!, 61
in_groups_of, 61
pack, 46
rand, 61
split, 61
to_s, 61
to_sentence, 61
to_xml, 61
arrays
core extensions, 61
grouping, 61
methods, 46
ASCII (American Standard Code for
Information Interchange), 237
aspect-oriented programming (AOP), 32
asset hosts, 319
asynchronous replication, 124
atomic commits, 298
attachment handling, 107
attachment_fu library, 107
attacks
cross-site request forgery (CSRF), 141
cross-site scripting (XSS), 139
rainbow, 128
SQL injection, 144
TCP sequence-number prediction, 138
(see also security)
attr_accessible method, 132
attr_accessor method, 276