Callbacks are powerful references to methods. They are sent to a process designed to be executed at a set future time. In this video you'll learn how Ruby on Rails ActiveRecord callbacks give you a way to intervene at specific points when validating user input and interacting with the database. This helps you build the skills necessary to interrupt automatic processes when you need something to happen in between.
…In this movie, I'll introduce you to ActiveRecord callbacks.…A callback is a reference to a method, that is sent to…some process to be executed at a predefined point in the future.…When the process runs and gets to that point, it will pause…and call back the method that you've given it and then continue.…It's a way of inserting ourselves into…what otherwise might be an automatic process.…So for example, we can insert ourselves into the…validation process or the save update or destroy process.…In Rails, callbacks provide a mechanism for us to intervene…at key points in the validation and database interaction processes.…
We can have callbacks that allow us to…perform a method before validation or right after validation.…We can perform callbacks that happen before the record is saved, or…after it is saved, before it is destroyed or after it is destroyed.…These will be automatic methods that will…be called right before those processes take place.…In addition when we're doing a create an update, we also have the ability to…
- Why use Ruby on Rails?
- Installing Ruby on Rails on Mac and Windows
- Rendering templates and redirecting requests
- Generating and running database migrations
- Creating, updating, and deleting records
- Understanding association types
- Using layouts, partials, and view helpers
- Incorporating assets using asset pipeline
- Validating form data
- Authenticating users and managing user access
- Architecting RESTful applications
- Debugging and error handing
Skill Level Intermediate
1. What Is Ruby on Rails?
2. Installing Ruby on Rails on a Mac
3. Installing Ruby on Rails on a Windows Machine
4. Getting Started
5. Controllers, Views, and Dynamic Content
6. Databases and Migrations
7. Models, ActiveRecord, and ActiveRelation
9. Controllers and CRUD
10. Layouts, Partials, and View Helpers
13. Data Validation
14. User Authentication
15. Improving the Simple CMS
16. REST and RESTful Routes
17. Debugging and Error Handling
18. Introducing More Advanced Topics
Next steps1m 40s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.