Use the command line to generate placeholder pages with default code for a controller and for view templates that will be used by the controller. Then learn how to access the new controller and template in a browser. For the first time, we have created a custom page for our project. We also got our first glimpse of how requests progress through the MVC architecture.
- [Instructor] We've now seen how to create and access…a Rails project, but at the moment,…it's just a bunch of default code.…We want to customize the application for our needs,…and we're going to start the process…by learning how to generate a controller and a view.…Think back to the MVC architecture…diagram that we sell earlier.…We have a browser that sends a request…to our controller code,…and the controller then makes whatever decisions it needs,…accesses the model and the database if it needs to,…and then finally, when it's ready,…sends its data on to the view,…which constructs the presentation,…and that's sent back to the browser as a webpage.…
The model and the database portion is really optional.…The browser and the controller interview portion…is the key triangle that must happen with each request.…It's the minimum amount that a Rails application needs.…The browser communicates with the controller,…the controller goes to the view,…the view goes back to the browser.…We're going to be focused on…just that triangle to begin with,…
- Creating and configuring a new Ruby on Rails project
- Generating controllers and views
- Handling server requests
- Using different types of routes
- Rendering and viewing templates
- Generating migrations and models
- Creating, updating, and deleting records
- Finding records with queries
- Understanding relationship types
- Writing controllers for CRUD
- Working with layouts and helpers
- Managing application assets
- Building forms
- Validating data
- Authenticating users
Skill Level Beginner
1. What Is Ruby on Rails?
2. Get Started
3. Controllers, Views, and Dynamic Content
4. Databases and Migrations
5. Models and ActiveRecord
7. CRUD, REST, and Resourceful Routes
8. Controllers and CRUD
9. Layouts, Partials, and View Helpers
12. Data Validation
13. Controller Features
14. User Authentication
15. Improve the Simple CMS
Next steps1m 44s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
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.