Advanced rails recipes:
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Raleigh, NC
The Pragmatic Bookshelf
2008
|
Schriftenreihe: | The programatic programmers
The facets of ruby series |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis Klappentext |
Beschreibung: | VIII, 447 S. |
ISBN: | 9780978739225 0978739221 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV023337820 | ||
003 | DE-604 | ||
005 | 20080711 | ||
007 | t | ||
008 | 080610s2008 |||| 00||| eng d | ||
020 | |a 9780978739225 |9 978-0-9787392-2-5 | ||
020 | |a 0978739221 |9 0-9787392-2-1 | ||
035 | |a (OCoLC)263418226 | ||
035 | |a (DE-599)BVBBV023337820 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-355 |a DE-11 | ||
082 | 0 | |a 006.7 | |
084 | |a ST 253 |0 (DE-625)143628: |2 rvk | ||
100 | 1 | |a Clark, Mike |e Verfasser |4 aut | |
245 | 1 | 0 | |a Advanced rails recipes |c Mike Clark and the Rails Community |
264 | 1 | |a Raleigh, NC |b The Pragmatic Bookshelf |c 2008 | |
300 | |a VIII, 447 S. | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a The programatic programmers | |
490 | 0 | |a The facets of ruby series | |
650 | 0 | 7 | |a Ruby on Rails |0 (DE-588)7516633-1 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Ruby on Rails |0 (DE-588)7516633-1 |D s |
689 | 0 | |5 DE-604 | |
856 | 4 | 2 | |m Digitalisierung UB Regensburg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000003&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
856 | 4 | 2 | |m Digitalisierung UB Regensburg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000004&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA |3 Klappentext |
999 | |a oai:aleph.bib-bvb.de:BVB01-016521658 |
Datensatz im Suchindex
_version_ | 1804137689243451392 |
---|---|
adam_text | Contents
1
Introduction
1
1.1
What Makes a Good Recipe Book?
............ 1
1.2
What Makes This an Advanced Recipe Book?
...... 2
1.3
Who s It For?
......................... 2
1.4
Who s Talking?
....................... 3
1.5
What Version Do You Need?
................ 3
1.6
Resources
.......................... 3
1.7
Acknowledgments
...................... 4
1.8
Tags and Thumb Tabs
................... 5
Part I
—
REST and Routes Recipes
7
1.
Create a RESTful Resource
................ 9
2.
Add Your Own RESTful Actions
.............. 15
3.
Nest Resources to Scope Access
.............. 19
4.
Toggle Attributes with
Ajax................ 25
5.
Authenticate REST Clients
................. 29
6.
Respond to Custom Formats
............... 35
7.
Catch All 404s
........................ 39
Part
Π
—
Database Recipes
43
8.
Add Foreign Key Constraints
............... 45
9.
Write Custom Validations
................. 49
10.
Take Advantage of Master/Slave Databases
....... 53
11.
Siphon Off SQL Queries
.................. 57
12.
Use Fixtures for Canned
Datasets
............ 61
Part
Ш
—
User-Interface Recipes
65
13.
Handle Multiple Models in One Form
.......... 67
14.
Replace In-View Raw JavaScript
............. 75
15.
Validate Required Form Fields Inline
........... 77
16.
Create Multistep Wizards
................. 81
vi
► CONTENTS
17.
Customize Error
Messages.................
9ł
18.
Upload Images with Thumbnails
............. 93
19.
Decouple JavaScript with Low Pro
............ 103
20.
Format Dates and Times
..................
Ill
21.
Support an iPhone Interface
................ 115
Part IV—Search Recipes
121
22.
Improve
SEO
with Dynamic Metatags
.......... 123
23.
Build a Site Map
....................... 127
24.
Find Stuff (Quick and Dirty)
................ 133
25.
Search Text with Ferret
.................. 137
26.
Ultra-Search with Sphinx
................. 143
27.
Solr-Power Your Search
.................. 151
Part V—Design Recipes
163
28.
Freshen Up Your Models with Scope
........... 165
29.
Create Meaningful Relationships Through Proxies
... 171
30.
Keep Forms DRY and Flexible
............... 175
31.
Prevent Train Wrecks
.................... 181
32.
Simplify Controllers with a Presenter
........... 185
Part VI—Integration Recipes
191
33.
Process Credit Card Payments
.............. 193
34.
Play Nice with Facebook
.................. 205
35.
Mark Locations on a Google Map
............. 207
36.
Tunnel Back to Your Application
............. 215
Part
VII—
Console Snacks
219
37.
Write Console Methods
................... 221
38.
Log to the Console
...................... 223
39.
Play in the Sandbox
..................... 225
40.
Access Helpers
........................ 227
41.
Shortcut the Console
................... 229
Part
VIII—
Asynchronous-Processing Recipes
231
42.
Send Lightweight Messages
................ 233
43.
Off-Load Long-Running Tasks to BackgrounDRb
.... 237
44.
Process Asynchronous, State-Based Workflows
..... 245
vii
Part IX—E-mail Recipes
251
45.
Validate E-mail Addresses
................. 253
46.
Receive E-mail Reliably via POP or IMAP
......... 257
47.
Send E-mail via Gmail
................... 263
48.
Keep E-mail Addresses Up-to-Date
............ 265
Part X—Testing Recipes
271
49.
Maintain Fixtures Without Frustration
.......... 273
50.
Describe Behavior from the Outside In with RSpec
. . . 277
51.
Test First with Shoulda
................... 285
52.
Write Domain-Specific RSpec Matchers
......... 291
53.
Write Custom Testing Tasks
................ 295
54.
Test JavaScript with Selenium
.............. 297
55.
Mock Models with FlexMock
................ 303
56.
Track Test Coverage with rcov
............... 307
57.
Automatically Validate HTML
............... 311
58.
Mock with a Safety Net
................... 315
59.
Drive a Feature
Тор
-Down
with Integration Tests
... 317
Part XI
—
Performance and Scalability Recipes
321
60.
Cache Data Easily
...................... 323
61.
Look Up Constant Data Efficiently
............ 327
62.
Profile in the Browser
.................... 333
63.
Cache Up with the Big Guys
................ 337
64.
Dynamically Update Cached Pages
............ 345
65.
Use DTrace for Profiling
.................. 349
Part
XII—
Security Recipes
357
66.
Constrain Access to Sensitive Data
............ 359
67.
Encrypt Sensitive Data
................... 361
68.
Flip On SSL
......................... 367
Part
ΧΙΠ
—
Deployment and Capistrano Recipes
371
69.
Upload Custom Maintenance Pages
........... 373
70.
Generate Custom Error
(404
and
500)
Pages
...... 377
71.
Write Config Files on the Fly
................ 381
72.
Create New Environments
................. 383
73.
Run Multistage Deployments
............... 387
74.
Safeguard the Launch Codes
............... 391
CONTENTS
75. Automate
Periodic
Tasks
.................. 393
76.
Preserve
Fües
Between
Deplojmients........... 399
77.
Segregate Page Cache Storage with Nginx
........ 401
78.
Load Balance Around Your Mongrels Health
...... 405
79.
Respond to Remote Capistrano Prompts
......... 411
80.
Monitor (and Repair) Processes with
Monit
....... 413
Part
XIV—
Big-Picture Recipes
417
81.
Manage Plug-in Versions
.................. 419
82.
Fail Early
........................... 423
83.
Give Users Their Own
Subdomain
............ 425
84.
Customize and Analyze Log
Fües............. 431
Bibliography
437
Index
439
Why struggle through hard Rails
problems alone when you can skip
the trial and error and jump straight
to a solution that works the first time?
Owning this community recipe book
is like having some of the best Rails
chefs sitting next to you when you
code. You ll learn how they ve solved
the tough problems using the most
up-to-date Rails techniques (includ¬
ing Rails
2.1
features).
This book contains
84
ready-to-use
recipes for:
•
RESTful interfaces,
•
faster searching,
•
sophisticated user interfaces,
•
better designs,
•
asynchronous processing,
•
seamless integration,
•
extended testing,
•
improved performance and scalability,
•
smoother deployment,
•
...and more.
The recipes are brought to you by
Mike Clark, a leader in the Rails com¬
munity, with contributions from more
than
50
other experts including the
Rails core team.
|
adam_txt |
Contents
1
Introduction
1
1.1
What Makes a Good Recipe Book?
. 1
1.2
What Makes This an Advanced Recipe Book?
. 2
1.3
Who's It For?
. 2
1.4
Who's Talking?
. 3
1.5
What Version Do You Need?
. 3
1.6
Resources
. 3
1.7
Acknowledgments
. 4
1.8
Tags and Thumb Tabs
. 5
Part I
—
REST and Routes Recipes
7
1.
Create a RESTful Resource
. 9
2.
Add Your Own RESTful Actions
. 15
3.
Nest Resources to Scope Access
. 19
4.
Toggle Attributes with
Ajax. 25
5.
Authenticate REST Clients
. 29
6.
Respond to Custom Formats
. 35
7.
Catch All 404s
. 39
Part
Π
—
Database Recipes
43
8.
Add Foreign Key Constraints
. 45
9.
Write Custom Validations
. 49
10.
Take Advantage of Master/Slave Databases
. 53
11.
Siphon Off SQL Queries
. 57
12.
Use Fixtures for Canned
Datasets
. 61
Part
Ш
—
User-Interface Recipes
65
13.
Handle Multiple Models in One Form
. 67
14.
Replace In-View Raw JavaScript
. 75
15.
Validate Required Form Fields Inline
. 77
16.
Create Multistep Wizards
. 81
vi
► CONTENTS
17.
Customize Error
Messages.
9ł
18.
Upload Images with Thumbnails
. 93
19.
Decouple JavaScript with Low Pro
. 103
20.
Format Dates and Times
.
Ill
21.
Support an iPhone Interface
. 115
Part IV—Search Recipes
121
22.
Improve
SEO
with Dynamic Metatags
. 123
23.
Build a Site Map
. 127
24.
Find Stuff (Quick and Dirty)
. 133
25.
Search Text with Ferret
. 137
26.
Ultra-Search with Sphinx
. 143
27.
Solr-Power Your Search
. 151
Part V—Design Recipes
163
28.
Freshen Up Your Models with Scope
. 165
29.
Create Meaningful Relationships Through Proxies
. 171
30.
Keep Forms DRY and Flexible
. 175
31.
Prevent Train Wrecks
. 181
32.
Simplify Controllers with a Presenter
. 185
Part VI—Integration Recipes
191
33.
Process Credit Card Payments
. 193
34.
Play Nice with Facebook
. 205
35.
Mark Locations on a Google Map
. 207
36.
Tunnel Back to Your Application
. 215
Part
VII—
Console Snacks
219
37.
Write Console Methods
. 221
38.
Log to the Console
. 223
39.
Play in the Sandbox
. 225
40.
Access Helpers
. 227
41.
Shortcut the Console
. 229
Part
VIII—
Asynchronous-Processing Recipes
231
42.
Send Lightweight Messages
. 233
43.
Off-Load Long-Running Tasks to BackgrounDRb
. 237
44.
Process Asynchronous, State-Based Workflows
. 245
vii
Part IX—E-mail Recipes
251
45.
Validate E-mail Addresses
. 253
46.
Receive E-mail Reliably via POP or IMAP
. 257
47.
Send E-mail via Gmail
. 263
48.
Keep E-mail Addresses Up-to-Date
. 265
Part X—Testing Recipes
271
49.
Maintain Fixtures Without Frustration
. 273
50.
Describe Behavior from the Outside In with RSpec
. . . 277
51.
Test First with Shoulda
. 285
52.
Write Domain-Specific RSpec Matchers
. 291
53.
Write Custom Testing Tasks
. 295
54.
Test JavaScript with Selenium
. 297
55.
Mock Models with FlexMock
. 303
56.
Track Test Coverage with rcov
. 307
57.
Automatically Validate HTML
. 311
58.
Mock with a Safety Net
. 315
59.
Drive a Feature
Тор
-Down
with Integration Tests
. 317
Part XI
—
Performance and Scalability Recipes
321
60.
Cache Data Easily
. 323
61.
Look Up Constant Data Efficiently
. 327
62.
Profile in the Browser
. 333
63.
Cache Up with the Big Guys
. 337
64.
Dynamically Update Cached Pages
. 345
65.
Use DTrace for Profiling
. 349
Part
XII—
Security Recipes
357
66.
Constrain Access to Sensitive Data
. 359
67.
Encrypt Sensitive Data
. 361
68.
Flip On SSL
. 367
Part
ΧΙΠ
—
Deployment and Capistrano Recipes
371
69.
Upload Custom Maintenance Pages
. 373
70.
Generate Custom Error
(404
and
500)
Pages
. 377
71.
Write Config Files on the Fly
. 381
72.
Create New Environments
. 383
73.
Run Multistage Deployments
. 387
74.
Safeguard the Launch Codes
. 391
CONTENTS
75. Automate
Periodic
Tasks
. 393
76.
Preserve
Fües
Between
Deplojmients. 399
77.
Segregate Page Cache Storage with Nginx
. 401
78.
Load Balance Around Your Mongrels' Health
. 405
79.
Respond to Remote Capistrano Prompts
. 411
80.
Monitor (and Repair) Processes with
Monit
. 413
Part
XIV—
Big-Picture Recipes
417
81.
Manage Plug-in Versions
. 419
82.
Fail Early
. 423
83.
Give Users Their Own
Subdomain
. 425
84.
Customize and Analyze Log
Fües. 431
Bibliography
437
Index
439
Why struggle through hard Rails
problems alone when you can skip
the trial and error and jump straight
to a solution that works the first time?
Owning this community recipe book
is like having some of the best Rails
chefs sitting next to you when you
code. You'll learn how they've solved
the tough problems using the most
up-to-date Rails techniques (includ¬
ing Rails
2.1
features).
This book contains
84
ready-to-use
recipes for:
•
RESTful interfaces,
•
faster searching,
•
sophisticated user interfaces,
•
better designs,
•
asynchronous processing,
•
seamless integration,
•
extended testing,
•
improved performance and scalability,
•
smoother deployment,
•
.and more.
The recipes are brought to you by
Mike Clark, a leader in the Rails com¬
munity, with contributions from more
than
50
other experts including the
Rails core team. |
any_adam_object | 1 |
any_adam_object_boolean | 1 |
author | Clark, Mike |
author_facet | Clark, Mike |
author_role | aut |
author_sort | Clark, Mike |
author_variant | m c mc |
building | Verbundindex |
bvnumber | BV023337820 |
classification_rvk | ST 253 |
ctrlnum | (OCoLC)263418226 (DE-599)BVBBV023337820 |
dewey-full | 006.7 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 006 - Special computer methods |
dewey-raw | 006.7 |
dewey-search | 006.7 |
dewey-sort | 16.7 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
discipline_str_mv | Informatik |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01569nam a2200373 c 4500</leader><controlfield tag="001">BV023337820</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20080711 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">080610s2008 |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9780978739225</subfield><subfield code="9">978-0-9787392-2-5</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">0978739221</subfield><subfield code="9">0-9787392-2-1</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)263418226</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV023337820</subfield></datafield><datafield tag="040" ind1=" " ind2=" "><subfield code="a">DE-604</subfield><subfield code="b">ger</subfield><subfield code="e">rakwb</subfield></datafield><datafield tag="041" ind1="0" ind2=" "><subfield code="a">eng</subfield></datafield><datafield tag="049" ind1=" " ind2=" "><subfield code="a">DE-355</subfield><subfield code="a">DE-11</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">006.7</subfield></datafield><datafield tag="084" ind1=" " ind2=" "><subfield code="a">ST 253</subfield><subfield code="0">(DE-625)143628:</subfield><subfield code="2">rvk</subfield></datafield><datafield tag="100" ind1="1" ind2=" "><subfield code="a">Clark, Mike</subfield><subfield code="e">Verfasser</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Advanced rails recipes</subfield><subfield code="c">Mike Clark and the Rails Community</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Raleigh, NC</subfield><subfield code="b">The Pragmatic Bookshelf</subfield><subfield code="c">2008</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">VIII, 447 S.</subfield></datafield><datafield tag="336" ind1=" " ind2=" "><subfield code="b">txt</subfield><subfield code="2">rdacontent</subfield></datafield><datafield tag="337" ind1=" " ind2=" "><subfield code="b">n</subfield><subfield code="2">rdamedia</subfield></datafield><datafield tag="338" ind1=" " ind2=" "><subfield code="b">nc</subfield><subfield code="2">rdacarrier</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">The programatic programmers</subfield></datafield><datafield tag="490" ind1="0" ind2=" "><subfield code="a">The facets of ruby series</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Ruby on Rails</subfield><subfield code="0">(DE-588)7516633-1</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="689" ind1="0" ind2="0"><subfield code="a">Ruby on Rails</subfield><subfield code="0">(DE-588)7516633-1</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="0" ind2=" "><subfield code="5">DE-604</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Regensburg</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000003&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Regensburg</subfield><subfield code="q">application/pdf</subfield><subfield code="u">http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000004&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Klappentext</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-016521658</subfield></datafield></record></collection> |
id | DE-604.BV023337820 |
illustrated | Not Illustrated |
index_date | 2024-07-02T21:00:25Z |
indexdate | 2024-07-09T21:16:17Z |
institution | BVB |
isbn | 9780978739225 0978739221 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-016521658 |
oclc_num | 263418226 |
open_access_boolean | |
owner | DE-355 DE-BY-UBR DE-11 |
owner_facet | DE-355 DE-BY-UBR DE-11 |
physical | VIII, 447 S. |
publishDate | 2008 |
publishDateSearch | 2008 |
publishDateSort | 2008 |
publisher | The Pragmatic Bookshelf |
record_format | marc |
series2 | The programatic programmers The facets of ruby series |
spelling | Clark, Mike Verfasser aut Advanced rails recipes Mike Clark and the Rails Community Raleigh, NC The Pragmatic Bookshelf 2008 VIII, 447 S. txt rdacontent n rdamedia nc rdacarrier The programatic programmers The facets of ruby series Ruby on Rails (DE-588)7516633-1 gnd rswk-swf Ruby on Rails (DE-588)7516633-1 s DE-604 Digitalisierung UB Regensburg application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000003&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis Digitalisierung UB Regensburg application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000004&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA Klappentext |
spellingShingle | Clark, Mike Advanced rails recipes Ruby on Rails (DE-588)7516633-1 gnd |
subject_GND | (DE-588)7516633-1 |
title | Advanced rails recipes |
title_auth | Advanced rails recipes |
title_exact_search | Advanced rails recipes |
title_exact_search_txtP | Advanced rails recipes |
title_full | Advanced rails recipes Mike Clark and the Rails Community |
title_fullStr | Advanced rails recipes Mike Clark and the Rails Community |
title_full_unstemmed | Advanced rails recipes Mike Clark and the Rails Community |
title_short | Advanced rails recipes |
title_sort | advanced rails recipes |
topic | Ruby on Rails (DE-588)7516633-1 gnd |
topic_facet | Ruby on Rails |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000003&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=016521658&sequence=000004&line_number=0002&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT clarkmike advancedrailsrecipes |