This book uses RepKover?„?, a durable and flexible lay-flat binding.
ISBN-10: 0-596-51032-2
ISBN-13: 978-0-596-51032-9
[C]
v
Table of Contents
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ix
1. Foundational Techniques . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
What Is Metaprogramming? 1
Ruby Foundations 4
Metaprogramming Techniques 23
Functional Programming 36
Examples 41
Further Reading 45
2. ActiveSupport and RailTies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Ruby You May Have Missed 46
How to Read Code 49
ActiveSupport 57
Core Extensions 60
RailTies 75
Further Reading 78
3. Rails Plugins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
About Plugins 79
Writing Plugins 83
Plugin Examples 85
Testing Plugins 90
Further Reading 95
vi | Table of Contents
4. Database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Database Management Systems 96
Large/Binary Objects 101
Advanced Database Features 109
Connecting to Multiple Databases 116
Caching 119
Load Balancing and High Availability 120
LDAP 124
Further Reading 126
5. Security . . . .
Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25