Ruby on Rails Tutorial: Learn Web Development with Rails, 7th Edition
- Length: 896 pages
- Edition: 7
- Language: English
- Publisher: Addison-Wesley Professional
- Publication Date: 2022-11-28
- ISBN-10: 013804984X
- ISBN-13: 9780138049843
- Sales Rank: #888535 (See Top 100 Books)
“Ruby on Rails™ Tutorial by Michael Hartl has become a must-read for developers learning how to build Rails apps.”
–Peter Cooper, Editor of Ruby Inside
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 Rails™ 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
Register your book for convenient access to downloads, updates, and/or corrections as they become available. See inside book for details.
Cover Page About This eBook Halftitle Page Title Page Copyright Page Contents Foreword Preface Chapter by Chapter Additional Features Final Thoughts Learn Enough Scholarships Acknowledgments About the Author Chapter 1. From Zero to Deploy 1.1 Up and Running 1.2 The First Application 1.3 Version Control with Git 1.4 Deploying 1.5 Conclusion 1.6 Conventions Used in This Book Chapter 2. A Toy App 2.1 Planning the Application 2.2 The Users Resource 2.3 The Microposts Resource 2.4 Conclusion Chapter 3. Mostly Static Pages 3.1 Sample App Setup 3.2 Static Pages 3.3 Getting Started with Testing 3.4 Slightly Dynamic Pages 3.5 Conclusion 3.6 Advanced Testing Setup Chapter 4. Rails-Flavored Ruby 4.1 Motivation 4.2 Strings and Methods 4.3 Other Data Structures 4.4 Ruby Classes 4.5 Conclusion Chapter 5. Filling in the Layout 5.1 Adding Some Structure 5.2 Sass and the Asset Pipeline 5.3 Layout Links 5.4 User Signup: A First Step 5.5 Conclusion Chapter 6. Modeling Users 6.1 User Model 6.2 User Validations 6.3 Adding a Secure Password 6.4 Conclusion Chapter 7. Sign Up 7.1 Showing Users 7.2 Signup Form 7.3 Unsuccessful Signups 7.4 Successful Signups 7.5 Professional-Grade Deployment 7.6 Conclusion Chapter 8. Basic Login 8.1 Sessions 8.2 Logging In 8.3 Logging Out 8.4 Conclusion Chapter 9. Advanced Login 9.1 Remember Me 9.2 “Remember Me” Checkbox 9.3 Remember Tests 9.4 Conclusion Chapter 10. Updating, Showing, and Deleting Users 10.1 Updating Users 10.2 Authorization 10.3 Showing All Users 10.4 Deleting Users 10.5 Conclusion Chapter 11. Account Activation 11.1 Account Activations Resource 11.2 Account Activation Emails 11.3 Activating the Account 11.4 Email in Production 11.5 Conclusion Chapter 12. Password Reset 12.1 Password Resets Resource 12.2 Password Reset Emails 12.3 Resetting the Password 12.4 Email in Production (Take 2) 12.5 Conclusion 12.6 Proof of Expiration Comparison Chapter 13. User Microposts 13.1 A Micropost Model 13.2 Showing Microposts 13.3 Manipulating Microposts 13.4 Micropost Images 13.5 Conclusion Chapter 14. Following Users 14.1 The Relationship Model 14.2 A Web Interface for Following Users 14.3 The Status Feed 14.4 Conclusion Index Credits Code Snippets
Donate to keep this site alive
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.