Ruby on Rails Tutorial

Learn Web Development with Rails

Paperback Engels 2023 9780138049843
Verwachte levertijd ongeveer 9 werkdagen

Samenvatting

Used by sites as varied as Hulu, GitHub, Shopify, and Airbnb, Ruby on Rails is one of the most popular frameworks for developing web applications, but it can be challenging to learn and use. Whether you're new to web development or new only to Rails, Ruby on RailsTM Tutorial, Seventh Edition, is the solution.

Best-selling author and leading Rails developer Michael Hartl teaches Rails by guiding you through the development of three example applications of increasing sophistication. The tutorial's examples focus on the general principles of web development needed for virtually any kind of website. The updates to this edition include full compatibility with Rails 7.

This indispensable guide provides integrated tutorials not only for Rails, but also for the essential Ruby, HTML, CSS, and SQL skills you need when developing web applications. Hartl explains how each new technique solves a real-world problem, and then he demonstrates it with bite-sized code that's simple enough to understand while still being useful. Whatever your previous web-development experience, this book will guide you to true Rails mastery.

This book will help you Set up your Rails development environment Record version changes with Git and create a secure remote repository at GitHub Deploy your applications early and often with Heroku Go beyond generated code to truly understand how to build Rails applications from scratch Learn testing and test-driven development (TDD) Effectively use the model-view-controller (MVC) pattern Structure applications using the REST architecture Build static pages and transform them into dynamic ones Master the Ruby programming skills all Rails developers need Create high-quality site layouts and data models Implement registration and authentication systems, including validation and secure passwords Update, display, and delete users Upload and display images using Active Storage and Amazon S3 Implement account activation and password reset, including sending email with Rails Integrate JavaScript with Rails using Importmap Add social features and microblogging, including an introduction to Hotwire and Turbo

"Ruby on RailsTM Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps."
--Peter Cooper, Editor of Ruby Inside

Gemfiles are available at https://gemfiles-7th-ed.railstutorial.org/
Code listings are available at https://github.com/learnenough/ruby_on_rails_tutorial_code_listings_7th_ed

Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.

Specificaties

ISBN13:9780138049843
Taal:Engels
Bindwijze:Paperback

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

<p>Foreword xvii<br>Preface xix<br>Acknowledgments xxv<br>About the Author xxvii</p> <p><strong>Chapter 1: From Zero to Deploy 1</strong><br>1.1 Up and Running 5<br>1.2 The First Application 14<br>1.3 Version Control with Git 35<br>1.4 Deploying 52<br>1.5 Conclusion 61<br>1.6 Conventions Used in This Book 62</p> <p><strong>Chapter 2: A Toy App 65</strong><br>2.1 Planning the Application 66<br>2.2 The Users Resource 71<br>2.3 The Microposts Resource 87<br>2.4 Conclusion 104</p> <p><strong>Chapter 3: Mostly Static Pages 107</strong><br>3.1 Sample App Setup 107<br>3.2 Static Pages 115<br>3.3 Getting Started with Testing 126<br>3.4 Slightly Dynamic Pages 135<br>3.5 Conclusion 152<br>3.6 Advanced Testing Setup 153</p> <p><strong>Chapter 4: Rails-Flavored Ruby 159</strong><br>4.1 Motivation 159<br>4.2 Strings and Methods 165<br>4.3 Other Data Structures 177<br>4.4 Ruby Classes 192<br>4.5 Conclusion 204</p> <p><strong>Chapter 5: Filling in the Layout 207</strong><br>5.1 Adding Some Structure 207<br>5.2 Sass and the Asset Pipeline 232<br>5.3 Layout Links 242<br>5.4 User Signup: A First Step 255<br>5.5 Conclusion 260</p> <p><strong>Chapter 6: Modeling Users 263</strong><br>6.1 User Model 264<br>6.2 User Validations 279<br>6.3 Adding a Secure Password 303<br>6.4 Conclusion 313</p> <p><strong>Chapter 7: Sign Up 315</strong><br>7.1 Showing Users 316<br>7.2 Signup Form 337<br>7.3 Unsuccessful Signups 346<br>7.4 Successful Signups 361<br>7.5 Professional-Grade Deployment 374<br>7.6 Conclusion 380</p> <p><strong>Chapter 8: Basic Login 381</strong><br>8.1 Sessions 381<br>8.2 Logging In 398<br>8.3 Logging Out 437<br>8.4 Conclusion 443</p> <p><strong>Chapter 9: Advanced Login 445</strong><br>9.1 Remember Me 445<br>9.2 "Remember Me" Checkbox 470<br>9.3 Remember Tests 476<br>9.4 Conclusion 489</p> <p><strong>Chapter 10: Updating, Showing, and Deleting Users 493</strong><br>10.1 Updating Users 493<br>10.2 Authorization 509<br>10.3 Showing All Users 526<br>10.4 Deleting Users 544<br>10.5 Conclusion 556</p> <p><strong>Chapter 11: Account Activation 559</strong><br>11.1 Account Activations Resource 560<br>11.2 Account Activation Emails 568<br>11.3 Activating the Account 585<br>11.4 Email in Production 610<br>11.5 Conclusion 619</p> <p><strong>Chapter 12: Password Reset 621</strong><br>12.1 Password Resets Resource 623<br>12.2 Password Reset Emails 634<br>12.3 Resetting the Password 641<br>12.4 Email in Production (Take 2) 658<br>12.5 Conclusion 659<br>12.6 Proof of Expiration Comparison 661</p> <p><strong>Chapter 13: User Microposts 663</strong><br>13.1 A Micropost Model 663<br>13.2 Showing Microposts 679<br>13.3 Manipulating Microposts 693<br>13.4 Micropost Images 726<br>13.5 Conclusion 752</p> <p><strong>Chapter 14: Following Users 755</strong><br>14.1 The Relationship Model 756<br>14.2 A Web Interface for Following Users 774<br>14.3 The Status Feed 805<br>14.4 Conclusion 821</p> <p>Index 825</p>

Managementboek Top 100

Rubrieken

    Personen

      Trefwoorden

        Ruby on Rails Tutorial