دسترسی نامحدود
برای کاربرانی که ثبت نام کرده اند
برای ارتباط با ما می توانید از طریق شماره موبایل زیر از طریق تماس و پیامک با ما در ارتباط باشید
در صورت عدم پاسخ گویی از طریق پیامک با پشتیبان در ارتباط باشید
برای کاربرانی که ثبت نام کرده اند
درصورت عدم همخوانی توضیحات با کتاب
از ساعت 7 صبح تا 10 شب
ویرایش: [7 ed.]
نویسندگان: Michael Hartl
سری: Addison-Wesley Professional Ruby Series
ISBN (شابک) : 013804984X, 9780138049843
ناشر: Addison-Wesley Professional
سال نشر: 2023
تعداد صفحات: 896
[889]
زبان: English
فرمت فایل : PDF (درصورت درخواست کاربر به PDF، EPUB یا AZW3 تبدیل می شود)
حجم فایل: 14 Mb
در صورت تبدیل فایل کتاب Ruby on Rails Tutorial: Learn Web Development with Rails به فرمت های PDF، EPUB، AZW3، MOBI و یا DJVU می توانید به پشتیبان اطلاع دهید تا فایل مورد نظر را تبدیل نمایند.
توجه داشته باشید کتاب آموزش Ruby on Rails: آموزش توسعه وب با Rails نسخه زبان اصلی می باشد و کتاب ترجمه شده به فارسی نمی باشد. وبسایت اینترنشنال لایبرری ارائه دهنده کتاب های زبان اصلی می باشد و هیچ گونه کتاب ترجمه شده یا نوشته شده به فارسی را ارائه نمی دهد.
Cover Half Title Title Page Copyright Page Contents Foreword Preface Acknowledgments About the Author Chapter 1 From Zero to Deploy 1.1 Up and Running 1.1.1 Development Environment 1.1.2 Installing Rails 1.2 The First Application 1.2.1 Bundler 1.2.2 rails server 1.2.3 Model-View-Controller (MVC) 1.2.4 Hello, World! 1.3 Version Control with Git 1.3.1 Git Setup 1.3.2 What Good Does Git Do You? 1.3.3 Git Hub 1.3.4 Branch, Edit, Commit, Merge 1.4 Deploying 1.4.1 Heroku Setup and Deployment 1.4.2 Heroku Commands 1.5 Conclusion 1.5.1 What We Learned in This Chapter 1.6 Conventions Used in This Book Chapter 2 A Toy App 2.1 Planning the Application 2.1.1 A Toy Model for Users 2.1.2 A Toy Model for Microposts 2.2 The Users Resource 2.2.1 A User Tour 2.2.2 MVC in Action 2.2.3 Weaknesses of This Users Resource 2.3 The Microposts Resource 2.3.1 A Micropost Microtour 2.3.2 Putting the micro in Microposts 2.3.3 A User has_many Microposts 2.3.4 Inheritance Hierarchies 2.3.5 Deploying the Toy App 2.4 Conclusion 2.4.1 What We Learned in This Chapter Chapter 3 Mostly Static Pages 3.1 Sample App Setup 3.2 Static Pages 3.2.1 Generated Static Pages 3.2.2 Custom Static Pages 3.3 Getting Started with Testing 3.3.1 Our First Test 3.3.2 Red 3.3.3 Green 3.3.4 Refactor 3.4 Slightly Dynamic Pages 3.4.1 Testing Titles (Red) 3.4.2 Adding Page Titles (Green) 3.4.3 Layouts and Embedded Ruby (Refactor) 3.4.4 Setting the Root Route 3.5 Conclusion 3.5.1 What We Learned in This Chapter 3.6 Advanced Testing Setup 3.6.1 Minitest Reporters 3.6.2 Automated Tests with Guard Chapter 4 Rails-Flavored Ruby 4.1 Motivation 4.1.1 Built-in-Helpers 4.1.2 Custom Helpers 4.2 Strings and Methods 4.2.1 Strings 4.2.2 Objects and Message Passing 4.2.3 Method Definitions 4.2.4 Back to the Title Helper 4.3 Other Data Structures 4.3.1 Arrays and Ranges 4.3.2 Blocks 4.3.3 Hashes and Symbols 4.3.4 CSS Revisited 4.4 Ruby Classes 4.4.1 Constructors 4.4.2 Class Inheritance 4.4.3 Modifying Built-in Classes 4.4.4 A Controller Class 4.4.5 A User Class 4.5 Conclusion 4.5.1 What We Learned in This Chapter Chapter 5 Filling in the Layout 5.1 Adding Some Structure 5.1.1 Site Navigation 5.1.2 Bootstrap and Custom CSS 5.1.3 Partials 5.2 Sass and the Asset Pipeline 5.2.1 The Asset Pipeline 5.2.2 Syntactically Awesome Stylesheets 5.3 Layout Links 5.3.1 Contact Page 5.3.2 Rails Routes 5.3.3 Using Named Routes 5.3.4 Layout Link Tests 5.4 User Signup: A First Step 5.4.1 Users Controller 5.4.2 Signup URL 5.5 Conclusion 5.5.1 What We Learned in This Chapter Chapter 6 Modeling Users 6.1 User Model 6.1.1 Database Migrations 6.1.2 The Model File 6.1.3 Creating User Objects 6.1.4 Finding User Objects 6.1.5 Updating User Objects 6.2 User Validations 6.2.1 A Validity Test 6.2.2 Validating Presence 6.2.3 Length Validation 6.2.4 Format Validation 6.2.5 Uniqueness Validation 6.3 Adding a Secure Password 6.3.1 A Hashed Password 6.3.2 User Has Secure Password 6.3.3 Minimum Password Standards 6.3.4 Creating and Authenticating a User 6.4 Conclusion 6.4.1 What We Learned in This Chapter Chapter 7 Sign Up 7.1 Showing Users 7.1.1 Debug and Rails Environments 7.1.2 A Users Resource 7.1.3 Debugger 7.1.4 A Gravatar Image and a Sidebar 7.2 Signup Form 7.2.1 Using form_with 7.2.2 Signup Form HTML 7.3 Unsuccessful Signups 7.3.1 A Working Form 7.3.2 Strong Parameters 7.3.3 Signup Error Messages 7.3.4 A Test for Invalid Submission 7.4 Successful Signups 7.4.1 The Finished Signup Form 7.4.2 The Flash 7.4.3 The First Signup 7.4.4 A Test for Valid Submission 7.5 Professional-Grade Deployment 7.5.1 SSL in Production 7.5.2 Production Web Server 7.5.3 Production Database Configuration 7.5.4 Production Deployment 7.6 Conclusion 7.6.1 What We Learned in This Chapter Chapter 8 Basic Login 8.1 Sessions 8.1.1 Sessions Controller 8.1.2 Login Form 8.1.3 Finding and Authenticating a User 8.1.4 Rendering with a Flash Message 8.1.5 A Flash Test 8.2 Logging In 8.2.1 The log_in Method 8.2.2 Current User 8.2.3 Changing the Layout Links 8.2.4 Menu Toggle 8.2.5 Mobile Styling 8.2.6 Testing Layout Changes 8.2.7 Login Upon Signup 8.3 Logging Out 8.4 Conclusion 8.4.1 What We Learned in This Chapter Chapter 9 Advanced Login 9.1 Remember Me 9.1.1 Remember Token and Digest 9.1.2 Login with Remembering 9.1.3 Forgetting Users 9.1.4 Two Subtle Bugs 9.2 “Remember Me” Checkbox 9.3 Remember Tests 9.3.1 Testing the “Remember Me” Box 9.3.2 Testing the Remember Branch 9.4 Conclusion 9.4.1 What We Learned in This Chapter Chapter 10 Updating, Showing, and Deleting Users 10.1 Updating Users 10.1.1 Edit Form 10.1.2 Unsuccessful Edits 10.1.3 Testing Unsuccessful Edits 10.1.4 Successful Edits (with TDD) 10.2 Authorization 10.2.1 Requiring Logged-in Users 10.2.2 Requiring the Right User 10.2.3 Friendly Forwarding 10.3 Showing All Users 10.3.1 Users Index 10.3.2 Sample Users 10.3.3 Pagination 10.3.4 Users Index Test 10.3.5 Partial Refactoring 10.4 Deleting Users 10.4.1 Administrative Users 10.4.2 The destroy Action 10.4.3 User Destroy Tests 10.5 Conclusion 10.5.1 What We Learned in This Chapter Chapter 11 Account Activation 11.1 Account Activations Resource 11.1.1 Account Activations Controller 11.1.2 Account Activation Data Model 11.2 Account Activation Emails 11.2.1 Mailer Templates 11.2.2 Email Previews 11.2.3 Email Tests 11.2.4 Updating the Users create Action 11.3 Activating the Account 11.3.1 Generalizing the authenticated? Method 11.3.2 Activation edit Action 11.3.3 Activation Tests and Refactoring 11.4 Email in Production 11.5 Conclusion 11.5.1 What We Learned in This Chapter Chapter 12 Password Reset 12.1 Password Resets Resource 12.1.1 Password Resets Controller 12.1.2 New Password Resets 12.1.3 Password Reset create Action 12.2 Password Reset Emails 12.2.1 Password Reset Mailer and Templates 12.2.2 Email Tests 12.3 Resetting the Password 12.3.1 Reset edit Action 12.3.2 Updating the Reset 12.3.3 Password Reset Test 12.4 Email in Production (Take2) 12.5 Conclusion 12.5.1 What We Learned in This Chapter 12.6 Proof of Expiration Comparison Chapter 13 User Microposts 13.1 A Micropost Model 13.1.1 The Basic Model 13.1.2 Micropost Validations 13.1.3 User/Micropost Associations 13.1.4 Micropost Refinements 13.2 Showing Microposts 13.2.1 Rendering Microposts 13.2.2 Sample Microposts 13.2.3 Profile Micropost Tests 13.3 Manipulating Microposts 13.3.1 Micropost Access Control 13.3.2 Creating Microposts 13.3.3 A Proto-Feed 13.3.4 Destroying Microposts 13.3.5 Micropost Tests 13.4 Micropost Images 13.4.1 Basic Image Upload 13.4.2 Image Validation 13.4.3 Image Resizing 13.4.4 Image Upload in Production 13.5 Conclusion 13.5.1 What We Learned in This Chapter Chapter 14 Following Users 14.1 The Relationship Model 14.1.1 A Problem with the Data Model (and a Solution) 14.1.2 User/Relationship Associations 14.1.3 Relationship Validations 14.1.4 Followed Users 14.1.5 Followers 14.2 A Web Interface for Following Users 14.2.1 Sample Following Data 14.2.2 Stats and a Follow Form 14.2.3 Following and Followers Pages 14.2.4 A Working Follow Button the Standard Way 14.2.5 A Working Follow Button with Hotwire 14.2.6 Following Tests 14.3 The Status Feed 14.3.1 Motivation and Strategy 14.3.2 A First Feed Implementation 14.3.3 Subselects and Eager Loading 14.4 Conclusion 14.4.1 Guide to Further Resources 14.4.2 What We Learned in This Chapter Index A B C D E F G H I J K L M N O P Q R S T U V W X Y Z