ISBN-10:
0134077709
ISBN-13:
9780134077703
Pub. Date:
05/13/2015
Publisher:
Addison-Wesley
Ruby on Rails Tutorial: Learn Web Development with Rails / Edition 3

Ruby on Rails Tutorial: Learn Web Development with Rails / Edition 3

by Michael Hartl
Current price is , Original price is $49.99. You

Temporarily Out of Stock Online

Please check back later for updated availability.

This item is available online through Marketplace sellers.

Product Details

ISBN-13: 9780134077703
Publisher: Addison-Wesley
Publication date: 05/13/2015
Series: Addison-Wesley Professional Ruby Series
Pages: 744
Product dimensions: 6.90(w) x 9.10(h) x 1.70(d)

About the Author

Michael Hartl is a best-selling author and founder of the educational website LearnEnough.com. His prior experience includes writing and developing RailsSpace, an extremely obsolete Rails tutorial book, and developing Insoshi, a once-popular and now-obsolete social networking platform in Ruby on Rails. In 2011, Michael received a Ruby Hero Award for his contributions to the Ruby community. He is a graduate of Harvard College, has a Ph.D. in Physics from Caltech, and is an alumnus of the Y Combinator entrepreneur program.

Table of Contents

Foreword to the First Edition by Derek Sivers xvii

Foreword to the Third Edition by Obie Fernandez xix

Acknowledgments xxi

About the Author xxiii

Chapter 1: From Zero to Deploy 1

1.1 Introduction 4

1.2 Up and Running 10

1.3 The First Application 14

1.4 Version Control with Git 31

1.5 Deploying 45

1.6 Conclusion 51

Chapter 2: A Toy App 53

2.1 Planning the Application 54

2.2 The Users Resource 58

2.3 The Microposts Resource 74

2.4 Conclusion 89

Chapter 3: Mostly Static Pages 93

3.1 Sample App Setup 93

3.2 Static Pages 99

3.3 Getting Started with Testing 110

3.4 Slightly Dynamic Pages 118

3.5 Conclusion 134

3.6 Advanced Testing Setup 136

Chapter 4: Rails-Flavored Ruby 145

4.1 Motivation 145

4.2 Strings and Methods 150

4.3 Other Data Structures 163

4.4 Ruby Classes 177

4.5 Conclusion 190

Chapter 5: Filling in the Layout 193

5.1 Adding Some Structure 193

5.2 Sass and the Asset Pipeline 217

5.3 Layout Links 227

5.4 User Signup: A First Step 240

5.5 Conclusion 245

Chapter 6: Modeling Users 247

6.1 User Model 248

6.2 User Validations 263

6.3 Adding a Secure Password 286

6.4 Conclusion 296

Chapter 7: Sign Up 299

7.1 Showing Users 300

7.2 Signup Form 320

7.3 Unsuccessful Signups 329

7.4 Successful Signups 345

7.5 Professional-Grade Deployment 358

7.6 Conclusion 362

Chapter 8: Basic Login 365

8.1 Sessions 366

8.2 Logging In 382

8.3 Logging Out 403

8.4 Conclusion 406

Chapter 9: Advanced Login 409

9.1 Remember Me 409

9.2 “Remember Me” Checkbox 433

9.3 Remember Tests 439

9.4 Conclusion 449

Chapter 10: Updating, Showing, and Deleting Users 451

10.1 Updating Users 451

10.2 Authorization 467

10.3 Showing All Users 483

10.4 Deleting Users 500

10.5 Conclusion 512

Chapter 11: Account Activation 515

11.1 Account Activations Resource 516

11.2 Account Activation Emails 525

11.3 Activating the Account 540

11.4 Email in Production 555

11.5 Conclusion 559

Chapter 12: Password Reset 561

12.1 Password Resets Resource 563

12.2 Password Reset Emails 574

12.3 Resetting the Password 581

12.4 Email in Production (Take Two) 595

12.5 Conclusion 598

12.6 Proof of Expiration Comparison 599

Chapter 13: User Microposts 601

13.1 A Micropost Model 601

13.2 Showing Microposts 616

13.3 Manipulating Microposts 631

13.4 Micropost Images 657

13.5 Conclusion 675

Chapter 14: Following Users 679

14.1 The Relationship Model 680

14.2 A Web Interface for Following Users 698

14.3 The Status Feed 730

14.4 Conclusion 741

Index 745

Customer Reviews

Most Helpful Customer Reviews

See All Customer Reviews