The Ruby on Rails Tutorial LiveLessons: Learn Web Development With Rails, 4th Edition

The Ruby on Rails Tutorial LiveLessons: Learn Web Development With Rails, 4th Edition

English | MP4 | AVC 1280×720 | AAC 44KHz 2ch | 20h 05m | 6.29 GB

The Ruby on Rails Tutorial LiveLessons, Fourth Edition, is the best-selling complete video training course on web development with Rails, the popular web framework for building dynamic, database-backed web applications. You will learn Rails by example by building a substantial sample application from scratch.

Best-selling author and leading Rails developer Michael Hartl teaches Rails by guiding you through the development of three sample applications of increasing sophistication, focusing on the fundamental techniques in web development needed for virtually any kind of application. The updates to this edition include full compatibility with Rails 5 and numerous new exercises interspersed in each lesson for maximum reinforcement. 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, yet useful.

What You Will Learn

  • How to install and set up your Rails development environment
  • Optional easy start using pre-installed IDE in the cloud
  • How to build Rails applications from scratch
  • Learn testing and test-driven development
  • Effectively use the Model-View-Controller (MVC) pattern
  • Structure applications using REST architecture
  • Build static pages and transform them into dynamic ones
  • Implement registration and authentication systems, including validation and secure passwords
  • How to deploy your application
Table of Contents

1 The Ruby on Rails Tutorial – Introduction
2 Topics
3 1.1.0 Introduction
4 1.1.1 Prerequisites
5 1.1.2 Conventions used in this book
6 1.2.0 Up and running
7 1.2.1 Development environment
8 1.2.2 Installing Rails
9 1.3.0 The first application
10 1.3.1 Bundler
11 1.3.2 rails server
12 1.3.3 Model-View-Controller (MVC)
13 1.3.4 Hello, world!
14 1.4.0 Version control with Git
15 1.4.1 Installation and setup
16 1.4.2 What good does Git do you
17 1.4.3 Bitbucket
18 1.4.4 Branch, edit, commit, merge
19 1.5.0 Deploying
20 1.5.1 Heroku setup
21 1.5.2 Heroku deployment, step one
22 1.5.3 Heroku deployment, step two
23 1.5.4 Heroku commands
24 1.6.0 Conclusion
25 Topics
26 2.1.0 Planning the application
27 2.1.1 A toy model for users
28 2.1.2 A toy model for microposts
29 2.2.0 The Users resource
30 2.2.1 A user tour
31 2.2.2 MVC in action
32 2.2.3 Weaknesses of this Users resource
33 2.3.0 The Microposts resource
34 2.3.1 A micropost microtour
35 2.3.2 Putting the micro in microposts
36 2.3.3 A user has_many microposts
37 2.3.4 Inheritance hierarchies
38 2.3.5 Deploying the toy app
39 2.4.0 Conclusion
40 Topics
41 3.1.0 Sample app setup
42 3.2.0 Static pages
43 3.2.1 Generated static pages
44 3.2.2 Custom static pages
45 3.3.0 Getting started with testing
46 3.3.1 Our first test
47 3.3.2 Red
48 3.3.3 Green
49 3.3.4 Refactor
50 3.4.0 Slightly dynamic pages
51 3.4.1 Testing titles (Red)
52 3.4.2 Adding page titles (Green)
53 3.4.3 Layouts and embedded Ruby (Refactor)
54 3.4.4 Setting the root route
55 3.5.0 Conclusion
56 3.6.0 Advanced testing setup
57 3.6.1 minitest reporters
58 3.6.2 Automated tests with Guard
59 Topics
60 4.1.0 Motivation
61 4.1.1 Built-in helpers
62 4.1.2 Custom helpers
63 4.2.0 Strings and methods
64 4.2.1 Comments
65 4.2.2 Strings
66 4.2.3 Objects and message passing
67 4.2.4 Method definitions
68 4.2.5 Back to the title helper
69 4.3.0 Other data structures
70 4.3.1 Arrays and ranges
71 4.3.2 Blocks
72 4.3.3 Hashes and symbols
73 4.3.4 CSS revisited
74 4.4.0 Ruby classes
75 4.4.1 Constructors
76 4.4.2 Class inheritance
77 4.4.3 Modifying built-in classes
78 4.4.4 A controller class
79 4.4.5 A user class
80 4.5.0 Conclusion
81 Topics
82 5.1.0 Adding some structure
83 5.1.1 Site navigation
84 5.1.2 Bootstrap and custom CSS
85 5.1.3 Partials
86 5.2.0 Sass and the asset pipeline
87 5.2.1 The asset pipeline
88 5.2.2 Syntactically awesome stylesheets
89 5.3.0 Layout links
90 5.3.1 Contact page
91 5.3.2 Rails routes
92 5.3.3 Using named routes
93 5.3.4 Layout link tests
94 5.4.0 User signup – A first step
95 5.4.1 Users controller
96 5.4.2 Signup URL
97 5.5.0 Conclusion
98 Topics
99 6.1.0 User model
100 6.1.1 Database migrations
101 6.1.2 The model file
102 6.1.3 Creating user objects
103 6.1.4 Finding user objects
104 6.1.5 Updating user objects
105 6.2.0 User validations
106 6.2.1 A validity test
107 6.2.2 Validating presence
108 6.2.3 Length validation
109 6.2.4 Format validation
110 6.2.5 Uniqueness validation
111 6.3.0 Adding a secure password
112 6.3.1 A hashed password
113 6.3.2 User has secure password
114 6.3.3 Minimum password standards
115 6.3.4 Creating and authenticating a user
116 6.4.0 Conclusion
117 Topics
118 7.1.0 Showing users
119 7.1.1 Debug and Rails environments
120 7.1.2 A Users resource
121 7.1.3 Debugger
122 7.1.4 A Gravatar image and a sidebar
123 7.2.0 Signup form
124 7.2.1 Using form_for
125 7.2.2 Signup form HTML
126 7.3.0 Unsuccessful signups
127 7.3.1 A working form
128 7.3.2 Strong parameters
129 7.3.3 Signup error messages
130 7.3.4 A test for invalid submission
131 7.4.0 Successful signups
132 7.4.1 The finished signup form
133 7.4.2 The flash
134 7.4.3 The first signup
135 7.4.4 A test for valid submission
136 7.5.0 Professional-grade deployment
137 7.5.1 SSL in production
138 7.5.2 Production webserver
139 7.5.3 Production deployment
140 7.6.0 Conclusion
141 Topics
142 8.1.0 Sessions
143 8.1.1 Sessions controller
144 8.1.2 Login form
145 8.1.3 Finding and authenticating a user
146 8.1.4 Rendering with a flash message
147 8.1.5 A flash test
148 8.2.0 Logging in
149 8.2.1 The log_in method
150 8.2.2 Current user
151 8.2.3 Changing the layout links
152 8.2.4 Testing layout changes
153 8.2.5 Login upon signup
154 8.3.0 Logging out
155 8.4.0 Conclusion
156 Topics
157 9.1.0 Remember me
158 9.1.1 Remember token and digest
159 9.1.2 Login with remembering
160 9.1.3 Forgetting users
161 9.1.4 Two subtle bugs
162 9.2.0 “Remember me” checkbox
163 9.3.0 Remember tests
164 9.3.1 Testing the “remember me” box
165 9.3.2 Testing the remember branch
166 9.4.0 Conclusion
167 Topics
168 10.1.0 Updating users
169 10.1.1 Edit form
170 10.1.2 Unsuccessful edits
171 10.1.3 Testing unsuccessful edits
172 10.1.4 Successful edits (with TDD)
173 10.2.0 Authorization
174 10.2.1 Requiring logged-in users
175 10.2.2 Requiring the right user
176 10.2.3 Friendly forwarding
177 10.3.0 Showing all users
178 10.3.1 Users index
179 10.3.2 Sample users
180 10.3.3 Pagination
181 10.3.4 Users index test
182 10.3.5 Partial refactoring
183 10.4.0 Deleting users
184 10.4.1 Administrative users
185 10.4.2 The destroy action
186 10.4.3 User destroy tests
187 10.5.0 Conclusion
188 Topics
189 11.1.0 Account activations resource
190 11.1.1 Account activations controller
191 11.1.2 Account activation data model
192 11.2.0 Account activation emails
193 11.2.1 Mailer templates
194 11.2.2 Email previews
195 11.2.3 Email tests
196 11.2.4 Updating the Users create action
197 11.3.0 Activating the account
198 11.3.1 Generalizing the authenticated method
199 11.3.2 Activation edit action
200 11.3.3 Activation test and refactoring
201 11.4.0 Email in production
202 11.5.0 Conclusion
203 Topics
204 12.1.0 Password resets resource
205 12.1.1 Password resets controller
206 12.1.2 New password resets
207 12.1.3 Password reset create action
208 12.2.0 Password reset emails
209 12.2.1 Password reset mailer and templates
210 12.2.2 Email tests
211 12.3.0 Resetting the password
212 12.3.1 Reset edit action
213 12.3.2 Updating the reset
214 12.3.3 Password reset test
215 12.4.0 Email in production (take two)
216 12.5.0 Conclusion
217 Topics
218 13.1.0 A Micropost model
219 13.1.1 The basic model
220 13.1.2 Micropost validations
221 13.1.3 User_Micropost associations
222 13.1.4 Micropost refinements
223 13.2.0 Showing microposts
224 13.2.1 Rendering microposts
225 13.2.2 Sample microposts
226 13.2.3 Profile micropost tests
227 13.3.0 Manipulating microposts
228 13.3.1 Micropost access control
229 13.3.2 Creating microposts
230 13.3.3 A proto-feed
231 13.3.4 Destroying microposts
232 13.3.5 Micropost tests
233 13.4.0 Micropost images
234 13.4.1 Basic image upload
235 13.4.2 Image validation
236 13.4.3 Image resizing
237 13.4.4 Image upload in production
238 13.5.0 Conclusion
239 Topics
240 14.1.0 The Relationship model
241 14.1.1 A problem with the data model (and a solution)
242 14.1.2 User_relationship associations
243 14.1.3 Relationship validations
244 14.1.4 Followed users
245 14.1.5 Followers
246 14.2.0 A web interface for following users
247 14.2.1 Sample following data
248 14.2.2 Stats and a follow form
249 14.2.3 Following and followers pages
250 14.2.4 A working follow button the standard way
251 14.2.5 A working follow button with Ajax
252 14.2.6 Following tests
253 14.3.0 The status feed
254 14.3.1 Motivation and strategy
255 14.3.2 A first feed implementation
256 14.3.3 Subselects
257 14.4.0 Conclusion
258 The Ruby on Rails Tutorial – Summary