Agile web development with Rails:
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Buch |
Sprache: | English |
Veröffentlicht: |
Raleigh, NC [u.a.]
The Pragmatic Bookshelf
2011
|
Ausgabe: | 4. ed.[for Rails 3], vers. 2011-3-11 |
Schriftenreihe: | The pragmatic programmers
The facets of Ruby series |
Schlagworte: | |
Online-Zugang: | Inhaltsverzeichnis |
Beschreibung: | XXIII, 457 Seiten Illustrationen |
ISBN: | 1934356549 9781934356548 |
Internformat
MARC
LEADER | 00000nam a2200000 c 4500 | ||
---|---|---|---|
001 | BV039133154 | ||
003 | DE-604 | ||
005 | 20230905 | ||
007 | t | ||
008 | 110712s2011 a||| |||| 00||| eng d | ||
020 | |a 1934356549 |9 1-934356-54-9 | ||
020 | |a 9781934356548 |9 978-1-934356-54-8 | ||
035 | |a (OCoLC)715143079 | ||
035 | |a (DE-599)BVBBV039133154 | ||
040 | |a DE-604 |b ger |e rakwb | ||
041 | 0 | |a eng | |
049 | |a DE-1028 |a DE-739 |a DE-188 | ||
082 | 0 | |a 006.76 | |
084 | |a ST 253 |0 (DE-625)143628: |2 rvk | ||
100 | 1 | |a Ruby, Sam |e Verfasser |0 (DE-588)133585425 |4 aut | |
245 | 1 | 0 | |a Agile web development with Rails |c Sam Ruby ; Dave Thomas ; David Heinemeier Hansson |
250 | |a 4. ed.[for Rails 3], vers. 2011-3-11 | ||
264 | 1 | |a Raleigh, NC [u.a.] |b The Pragmatic Bookshelf |c 2011 | |
300 | |a XXIII, 457 Seiten |b Illustrationen | ||
336 | |b txt |2 rdacontent | ||
337 | |b n |2 rdamedia | ||
338 | |b nc |2 rdacarrier | ||
490 | 0 | |a The pragmatic 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 |
650 | 0 | 7 | |a Internet |0 (DE-588)4308416-3 |2 gnd |9 rswk-swf |
650 | 0 | 7 | |a Softwareentwicklung |0 (DE-588)4116522-6 |2 gnd |9 rswk-swf |
689 | 0 | 0 | |a Ruby on Rails |0 (DE-588)7516633-1 |D s |
689 | 0 | |5 DE-604 | |
689 | 1 | 0 | |a Internet |0 (DE-588)4308416-3 |D s |
689 | 1 | 1 | |a Softwareentwicklung |0 (DE-588)4116522-6 |D s |
689 | 1 | |8 1\p |5 DE-604 | |
700 | 1 | |a Thomas, David A. |d 1946- |e Verfasser |0 (DE-588)1118538978 |4 aut | |
700 | 1 | |a Heinemeier Hansson, David |e Verfasser |0 (DE-588)173789617 |4 aut | |
856 | 4 | 2 | |m Digitalisierung UB Bamberg |q application/pdf |u http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024151416&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |3 Inhaltsverzeichnis |
999 | |a oai:aleph.bib-bvb.de:BVB01-024151416 | ||
883 | 1 | |8 1\p |a cgwrk |d 20201028 |q DE-101 |u https://d-nb.info/provenance/plan#cgwrk |
Datensatz im Suchindex
_version_ | 1804147969474166784 |
---|---|
adam_text | Preface
to the Fourth Edition
xiii
Acknowledgments
xv
Introduction
xvii
Rails Simply Feels Right
......................... xvii
Rails Is Agile
............................... xix
Who This Book Is For
.......................... xx
How To Read This Book
......................... xx
Part I—Getting Started
1
1
Installing Rails
3
1.1
Installing on Windows
...................... 3
1.2
Installing on Mac OS X
..................... 5
1.3
Installing on Linux
........................ 6
1.4
Choosing a Rails Version
.................... 7
1.5
Setting Up Your Development Environment
......... 8
1.6
Rails and Databases
....................... 12
1.7
What We Just Did
........................ 13
2
Instant Gratification
15
2.1
Creating a New Application
................... 15
2.2
Hello, Rails!
............................ 17
2.3
Linking Pages Together
..................... 24
2.4
What We Just Did
........................ 27
3
The Architecture of Rails Applications
29
3.1
Models, Views, and Controllers
................ 29
3.2
Rails Model Support
....................... 32
3.3
Action Pack: The View and Controller
............ 34
viii
► CONTENTS
4
Introduction
to Ruby
37
4.1
Ruby Is an Object-Oriented Language
............ 37
4.2
Data Types
............................ 39
4.3
Logic
................................ 42
4.4
Organizing Structures
...................... 45
4.5
Marshaling Objects
....................... 48
4.6
Pulling It All Together
...................... 48
4.7
Ruby Idioms
........................... 49
Part II
—
Building an Application
53
5
The Depot Application
55
5.1
Incremental Development
.................... 55
5.2
What Depot Does
......................... 56
5.3
Let s Code
............................. 60
6
Task A: Creating the Application
61
6.1
Iteration
Al:
Creating the Products Maintenance Applica¬
tion
................................. 61
6.2
Iteration A2: Making Prettier Listings
............. 67
7
Task B: Validation and Unit Testing
75
7.1
Iteration Bl: Validating!
..................... 75
7.2
Iteration B2: Unit Testing of Models
............. 80
8
Task C: Catalog Display
89
8.1
Iteration
С
1 :
Creating the Catalog Listing
.......... 89
8.2
Iteration C2: Adding a Page Layout
.............. 92
8.3
Iteration C3: Using a Helper to Format the Price
...... 96
8.4
Iteration C4: Functional Testing of Controllers
....... 97
9
Task D: Cart Creation
101
9.1
Iteration Dl: Finding a Cart
.................. 101
9.2
Iteration D2: Connecting Products to Carts
......... 102
9.3
Iteration D3: Adding a Button
................. 104
10
Task
Б:
A Smarter Cart 111
10.1
Iteration El: Creating a Smarter Cart
............
Ill
10.2
Iteration E2: Handling Errors
................. 116
10.3
Iteration E3: Finishing the Cart
................ 119
їх
11
Task
F:
Add a Dash of
Ajax 125
11.1
Iteration
Fl:
Moving the Cart
................. 126
11.2
Iteration F2: Creating an
Ajax-
Based Cart
.......... 131
11.3
Iteration F3: Highlighting Changes
.............. 134
11.4
Iteration F4: Hiding an Empty Cart
.............. 136
11.5
Testing
Ajax
Changes
...................... 140
12
Task G: Check Out!
145
12.1
Iteration Gl: Capturing an Order
............... 145
12.2
Iteration G2: Atom Feeds
.................... 159
12.3
Iteration G3: Pagination
..................... 163
13
Task H: Sending Mail
169
13.1
Iteration HI: Sending Confirmation Emails
......... 169
13.2
Iteration H2: Integration Testing of Applications
...... 176
14
Task I: Logging In
183
14.1
Iteration II: Adding Users
................... 183
14.2
Iteration
12:
Authenticating Users
............... 192
14.3
Iteration
13:
Limiting Access
.................. 197
14.4
Iteration
14:
Adding a Sidebar, More Administration
.... 200
15
Task J: Internationalization
205
15.1
Iteration Jl: Selecting the Locale
............... 206
15.2
Iteration J2: Translating the Storefront
........... 208
15.3
Iteration J3: Translating Checkout
.............. 215
15.4
Iteration J4: Add a Locale Switcher
.............. 221
16
Task K: Deployment and Production
225
16.1
Iteration Kl
:
Deploying with Phusion Passenger and MySQL
227
16.2
Iteration K2: Deploying Remotely with Capistrano
..... 232
16.3
Iteration
КЗ:
Checking Up on a Deployed Application
. . . 238
17
Depot Retrospective
243
17.1
Rails Concepts
.......................... 243
17.2
Documenting What We Have Done
.............. 247
CONTENTS
Part III—Rails in Depth
249
18
Finding Your Way Around Rails
251
18.1
Where Things Go
......................... 251
18.2
Naming
Conventions ...................... 260
19
Active Record
265
19.1
Defining Your Data
....................... 265
19.2
Locating and Traversing Records
............... 270
19.3
Creating, Reading, Updating, and Deleting
(CRUD)
.... 273
19.4
Participating in the Monitoring Process
........... 289
19.5
Transactions
........................... 296
20
Action Dispatch and Action Controller
301
20.1
Dispatching Requests to Controllers
............. 301
20.2
Processing of Requests
..................... 312
20.3
Objects and Operations That Span Requests
........ 323
21
Action View
333
21.1
Using Templates
......................... 333
21.2
Generating Forms
........................ 335
21.3
Processing Forms
........................ 338
21.4
Uploading Files to Rails Applications
............. 339
21.5
Using Helpers
........................... 343
21.6
Reducing Maintenance with Layouts and
Partials
..... 349
22
Caching
359
22.1
Page Caching
........................... 359
22.2
Expiring Pages
.......................... 362
22.3
Fragment Caching
........................ 368
23
Migrations
375
23.1
Creating and Running Migrations
............... 375
23.2
Anatomy of a Migration
..................... 378
23.3
Managing Tables
......................... 382
23.4
Advanced Migrations
...................... 386
23.5
When Migrations Go Bad
.................... 390
23.6
Schema Manipulation Outside Migrations
.......... 391
24
Nonbrowser Applications
393
24.1
A Stand-Alone Application Using Active Record
....... 393
24.2
A Library Function Using Active Support
.......... 394
24.3
A Remote Application Using Active Resource
........ 399
xi
25
Rails
Dependencies
405
25.1
Generating XML with Builder
................. 405
25.2
Generating HTML with ERb
.................. 407
25.3
Managing Dependencies with
Bundler............ 409
25.4
Interfacing with the Web Server with Rack
.......... 411
25.5
Automating Tasks with Rake
.................. 415
25.6
Survey of Rails Dependencies
................. 416
26
Rails
Plugins 421
26.1
Credit Card Processing with Active Merchant
........ 421
26.2
Saving Bandwidth with Asset Packager
........... 423
26.3
Beautifying Our Markup with Haml
.............. 425
26.4
Write Less and Do More with JQuery
............. 428
26.5
FindingMoreatRailsPlugins.org
............... 430
27
Where to Go from Here
433
A Bibliography
435
Index
437
|
any_adam_object | 1 |
author | Ruby, Sam Thomas, David A. 1946- Heinemeier Hansson, David |
author_GND | (DE-588)133585425 (DE-588)1118538978 (DE-588)173789617 |
author_facet | Ruby, Sam Thomas, David A. 1946- Heinemeier Hansson, David |
author_role | aut aut aut |
author_sort | Ruby, Sam |
author_variant | s r sr d a t da dat h d h hd hdh |
building | Verbundindex |
bvnumber | BV039133154 |
classification_rvk | ST 253 |
ctrlnum | (OCoLC)715143079 (DE-599)BVBBV039133154 |
dewey-full | 006.76 |
dewey-hundreds | 000 - Computer science, information, general works |
dewey-ones | 006 - Special computer methods |
dewey-raw | 006.76 |
dewey-search | 006.76 |
dewey-sort | 16.76 |
dewey-tens | 000 - Computer science, information, general works |
discipline | Informatik |
edition | 4. ed.[for Rails 3], vers. 2011-3-11 |
format | Book |
fullrecord | <?xml version="1.0" encoding="UTF-8"?><collection xmlns="http://www.loc.gov/MARC21/slim"><record><leader>01950nam a2200469 c 4500</leader><controlfield tag="001">BV039133154</controlfield><controlfield tag="003">DE-604</controlfield><controlfield tag="005">20230905 </controlfield><controlfield tag="007">t</controlfield><controlfield tag="008">110712s2011 a||| |||| 00||| eng d</controlfield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">1934356549</subfield><subfield code="9">1-934356-54-9</subfield></datafield><datafield tag="020" ind1=" " ind2=" "><subfield code="a">9781934356548</subfield><subfield code="9">978-1-934356-54-8</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(OCoLC)715143079</subfield></datafield><datafield tag="035" ind1=" " ind2=" "><subfield code="a">(DE-599)BVBBV039133154</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-1028</subfield><subfield code="a">DE-739</subfield><subfield code="a">DE-188</subfield></datafield><datafield tag="082" ind1="0" ind2=" "><subfield code="a">006.76</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">Ruby, Sam</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)133585425</subfield><subfield code="4">aut</subfield></datafield><datafield tag="245" ind1="1" ind2="0"><subfield code="a">Agile web development with Rails</subfield><subfield code="c">Sam Ruby ; Dave Thomas ; David Heinemeier Hansson</subfield></datafield><datafield tag="250" ind1=" " ind2=" "><subfield code="a">4. ed.[for Rails 3], vers. 2011-3-11</subfield></datafield><datafield tag="264" ind1=" " ind2="1"><subfield code="a">Raleigh, NC [u.a.]</subfield><subfield code="b">The Pragmatic Bookshelf</subfield><subfield code="c">2011</subfield></datafield><datafield tag="300" ind1=" " ind2=" "><subfield code="a">XXIII, 457 Seiten</subfield><subfield code="b">Illustrationen</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 pragmatic 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="650" ind1="0" ind2="7"><subfield code="a">Internet</subfield><subfield code="0">(DE-588)4308416-3</subfield><subfield code="2">gnd</subfield><subfield code="9">rswk-swf</subfield></datafield><datafield tag="650" ind1="0" ind2="7"><subfield code="a">Softwareentwicklung</subfield><subfield code="0">(DE-588)4116522-6</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="689" ind1="1" ind2="0"><subfield code="a">Internet</subfield><subfield code="0">(DE-588)4308416-3</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2="1"><subfield code="a">Softwareentwicklung</subfield><subfield code="0">(DE-588)4116522-6</subfield><subfield code="D">s</subfield></datafield><datafield tag="689" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="5">DE-604</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Thomas, David A.</subfield><subfield code="d">1946-</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)1118538978</subfield><subfield code="4">aut</subfield></datafield><datafield tag="700" ind1="1" ind2=" "><subfield code="a">Heinemeier Hansson, David</subfield><subfield code="e">Verfasser</subfield><subfield code="0">(DE-588)173789617</subfield><subfield code="4">aut</subfield></datafield><datafield tag="856" ind1="4" ind2="2"><subfield code="m">Digitalisierung UB Bamberg</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=024151416&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA</subfield><subfield code="3">Inhaltsverzeichnis</subfield></datafield><datafield tag="999" ind1=" " ind2=" "><subfield code="a">oai:aleph.bib-bvb.de:BVB01-024151416</subfield></datafield><datafield tag="883" ind1="1" ind2=" "><subfield code="8">1\p</subfield><subfield code="a">cgwrk</subfield><subfield code="d">20201028</subfield><subfield code="q">DE-101</subfield><subfield code="u">https://d-nb.info/provenance/plan#cgwrk</subfield></datafield></record></collection> |
id | DE-604.BV039133154 |
illustrated | Illustrated |
indexdate | 2024-07-09T23:59:41Z |
institution | BVB |
isbn | 1934356549 9781934356548 |
language | English |
oai_aleph_id | oai:aleph.bib-bvb.de:BVB01-024151416 |
oclc_num | 715143079 |
open_access_boolean | |
owner | DE-1028 DE-739 DE-188 |
owner_facet | DE-1028 DE-739 DE-188 |
physical | XXIII, 457 Seiten Illustrationen |
publishDate | 2011 |
publishDateSearch | 2011 |
publishDateSort | 2011 |
publisher | The Pragmatic Bookshelf |
record_format | marc |
series2 | The pragmatic programmers The facets of Ruby series |
spelling | Ruby, Sam Verfasser (DE-588)133585425 aut Agile web development with Rails Sam Ruby ; Dave Thomas ; David Heinemeier Hansson 4. ed.[for Rails 3], vers. 2011-3-11 Raleigh, NC [u.a.] The Pragmatic Bookshelf 2011 XXIII, 457 Seiten Illustrationen txt rdacontent n rdamedia nc rdacarrier The pragmatic programmers The facets of Ruby series Ruby on Rails (DE-588)7516633-1 gnd rswk-swf Internet (DE-588)4308416-3 gnd rswk-swf Softwareentwicklung (DE-588)4116522-6 gnd rswk-swf Ruby on Rails (DE-588)7516633-1 s DE-604 Internet (DE-588)4308416-3 s Softwareentwicklung (DE-588)4116522-6 s 1\p DE-604 Thomas, David A. 1946- Verfasser (DE-588)1118538978 aut Heinemeier Hansson, David Verfasser (DE-588)173789617 aut Digitalisierung UB Bamberg application/pdf http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024151416&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA Inhaltsverzeichnis 1\p cgwrk 20201028 DE-101 https://d-nb.info/provenance/plan#cgwrk |
spellingShingle | Ruby, Sam Thomas, David A. 1946- Heinemeier Hansson, David Agile web development with Rails Ruby on Rails (DE-588)7516633-1 gnd Internet (DE-588)4308416-3 gnd Softwareentwicklung (DE-588)4116522-6 gnd |
subject_GND | (DE-588)7516633-1 (DE-588)4308416-3 (DE-588)4116522-6 |
title | Agile web development with Rails |
title_auth | Agile web development with Rails |
title_exact_search | Agile web development with Rails |
title_full | Agile web development with Rails Sam Ruby ; Dave Thomas ; David Heinemeier Hansson |
title_fullStr | Agile web development with Rails Sam Ruby ; Dave Thomas ; David Heinemeier Hansson |
title_full_unstemmed | Agile web development with Rails Sam Ruby ; Dave Thomas ; David Heinemeier Hansson |
title_short | Agile web development with Rails |
title_sort | agile web development with rails |
topic | Ruby on Rails (DE-588)7516633-1 gnd Internet (DE-588)4308416-3 gnd Softwareentwicklung (DE-588)4116522-6 gnd |
topic_facet | Ruby on Rails Internet Softwareentwicklung |
url | http://bvbr.bib-bvb.de:8991/F?func=service&doc_library=BVB01&local_base=BVB01&doc_number=024151416&sequence=000002&line_number=0001&func_code=DB_RECORDS&service_type=MEDIA |
work_keys_str_mv | AT rubysam agilewebdevelopmentwithrails AT thomasdavida agilewebdevelopmentwithrails AT heinemeierhanssondavid agilewebdevelopmentwithrails |