Agile Web Development With Rails 5

老马行空 69 0 PDF 2020-07-30 17:07:33

Agile Web Development With Rails 5Early praise for Agile Web Development with Rails 5Agile Web Development with Rails 5 is the best resource to get up to speed withRails! Even after these many years, it's still relevantPrathamesh sonpatkiDirector, Big Binary and member of the Rails issues teamThe organization of the book is excellent. The first two parts are a walkthroughof building an application, and the demo project is an example that is easy tounderstand, yet shows the value the Rails framework creates for the developer. Ialso value many of the topics discussed in Part Ill. Overall an excellent book thatI continue to recommend to new developersJeff hollandSenior software engineer, Ackmann DickensonThis is the best into to web development book for any language!Charles stranDirector of product engineering and design, The BlazeAnother solid update to the book that I've been referring to over and over againas I've been working with Rails. One of the best books available for railsStephen orrSenior Developer, SiftwareWe've left this page blank tomake the page numbers thesame in the electronic andpapWe tried just leabut then people wrote us toask about the missing pagesAgile Web Development with Rails 5Sam RubyDave thomasDavid heinemeier hanssonThe Pragmatic BookshelfRaleigh, North CarolinaPRagmaticMany of the designations used by manufacturers and sellers to distinguish their productsare claimed as trademarks. Where those designations appear in this book, and The PragmaticProgrammers, LLC was aware of a trademark claim, the designations have been printed ininitial capital letters or in all capitals. The Pragmatic Starter Kit, The Pragmatic Programmer,Pragmatic Programming, Pragmatic Bookshelf, Prag Prog and the linking g device are trademarks of The Pragmatic Programmers, LlCEvery precaution was taken in the preparation of this book. However, the publisher assumesno responsibility for errors or omissions, or for damages that may result from the use ofinformation (including program listings) contained hereinOur Pragmatic books, screencasts, and audio books can help you and your team createbettersoftwareandhavemorefunVisitusathttps:/pragprog.comThe team that produced this book includesSusannah Davidson pfalzer (editor)Potomac Indexing, LLC (index)Eileen Cohen(copyeditGilson Graphics (layout)Janet Furlow (producer)For sales, volume licensing, and support, please contact support@pragprog comFor international rights, please contact rights@pragprog comCopyright 2016 The Pragmatic Programmers, LLCI rights reservedNo part of this publication may be reproduced, stored in a retrieval system, or transmitted,in any form, or by any means, electronic, mechanical, photocopying, recording, or otherwise,without the prior consent of the publisher.Printed in the United States of americaSBN-13:978-1-68050-171-1Encoded using the finest acid-free high-entropy binary digitsBook version: P1.0--September 2016ContentsForeword to the rails 5 editionPreface to the rails 5 editionAcknowledgmentsXVIlIntroductionXIXPart 1-Getting Started1. Installing railsInstalling on Cloud9Installing on a virtual machine3468Installing on WindowsInstalling on Mac osX11Installing on Linuxnoosing a Rails version14Setting Up Your Development Environment14Rails and databases182. Instant gratification21Creating a New Application21Hello. rails!24Linking Pages Together30When Things Go Wrong333. The Architecture of Rails Applications39Models. views, and Controllers39Rails Model Support42Action pack: The view and controller444. Introduction to Ruby47Ruby Is an object-Oriented Language47Contents·viData Types49Logic53Organizing structures56Marshaling Objects59Pulling It All Together59Ruby Idioms60Part l-Building an Application5. The Depot Application65Incremental Development65What Depot does66Let's Code706. Task A: Creating the application71Iteration Al: Creating the Product Maintenance Application71Iteration A2: Making Prettier Listings78Task B: Validation and Unit Testing87Iteration Bl: Validating87Iteration B2: Unit Testing of Models92Task C: Catalog Display101Iteration Cl: Creating the Catalog listing101Iteration C2: Adding a Page Layout105Iteration C3: USing a Helper to Format the Price110Iteration C4: Functional Testing of Controllersl11Iteration C5: Caching of Partial Results1139. Task D: Cart creation117Iteration DI: Finding a Cart117Iteration D2: Connecting Products to Cartsl18Iteration D3: Adding a button12110. Task E: a Smarter Cart129Iteration El: Creating a Smarter Cart129Iteration E2: Handling Errors134Iteration E3: Finishing the Cart13911. Task F: Add a dash of ajax145Iteration Fl: Moving the Cart145Iteration F2 Creating an ajax-Based Cart153Contents·viIteration F3: Highlighting Changes157Iteration F4: Hiding an Empty Cart160Iteration F5: Broadcasting Updates with Action Cable16412. Task G: check Out169Iteration GI: Capturing an Order169Iteration g2: Atom Feeds18313. Task H: Sending Mail189Iteration Hl: Sending Confirmation Emails189Iteration H2: Integration Testing of Applications19614. Task I: Logging In203Iteration Il: Adding users203Iteration I2 Authenticating Users207Iteration I3: Limiting Access213Iteration 14: Adding a Sidebar, More Administration21515. Task J: Internationalization221Iteration J1: Selecting the Locale222Iteration J2: Translating the Storefront226Iteration J3: Translating Checkout233Iteration J4: Add a Locale switcher23916. Task K: Deployment and Production243Iteration Kl: Deploying with Phusion Passenger and MySOL 245Iteration K2: Deploying Remotely with Capistrano252Iteration K3: Checking Up on a Deployed Application25817. Depot Retrospective263Rails Concepts263Documenting What We've Done266PartⅢl— Rails in Depth18. Finding Your Way Around rails269Where Things go269Naming Conventions2771 9. Active record281Defining Your Data281Locating and Traversing Records286bContents·viiCreating, Reading, Updating, and Deleting (CRUD)290Participating in the Monitoring Process304Transactions31020. Action Dispatch and action controller315Dispatching Requests to Controllers316Processing of Requests325Objects and Operations That Span Requests33721. Action view347Using Templates347Generating forms349Processing Forms352Uploading Files to Rails Applications354Using Helpers357Reducing Maintenance with Layouts and Partials36422. Migrations373Creating and Running Migrations373Anatomy of a migration376Managing tables380Advanced migrations385When Migrations Go Bad388Schema Manipulation Outside migrations38923. Nonbrowser Applications391a Stand-Alone Application Using Active Record391A Library Function Using Active Support39224. Rails'Dependencies399Generating XMl with Builder399Generating hTml with ERB401Managing Dependencies with Bundler403Interfacing with the Web Server with Rack406Automating Tasks with Rake409Survey of rails Dependencies41125. Rails Plugins415Credit Card Processing with Active Merchant415Beautifying our markup with haml417

Agile Web Development With Rails 5

用户评论
请输入评论内容
评分:
Generic placeholder image 卡了网匿名网友 2020-07-30 17:07:33

非常不错的资源

Generic placeholder image 卡了网匿名网友 2020-07-30 17:07:33

还不错,挺好的!