Join Kevin Skoglund for an in-depth discussion in this video Generating a controller and view, part of Ruby on Rails 3 Essential Training.
- View Offline
- Exercise Files
We've seen how to create a Rails application and how to access it through the…browser, but we haven't created any of our own code.…We haven't done any of our own custom configuration.…That's what we are going to start doing here.…We are going to do that by creating our own controller and view.…Think back to MVC web architecture diagram that I showed you before.…We had the browser communicating with the controller which makes decisions and…then it could communicate with the model in the database to deal with data.…Then when it was ready, it would tell the view "Okay, now render the presentation…back to the browser."…We are going to focus on the first part of that, that little triangle between…browser, control, view and then back to browser.…
We are not going to be dealing with the data just yet.…we'll come back to little later on.…We don't have to access any data at all.…The controller can make a decision and say "Oh, browser,…based on what you've told me, I would like to show you this view." That's it.…
- Understanding MVC (Model View Controller ) architecture
- Routing browser requests through the framework
- Responding to requests with dynamic content
- Defining associations and database relationships
- Creating, reading, updating and deleting records
- Working with forms
- Validating form data
- Reviewing built-in security features
- Authenticating users and managing user access
- Debugging and error handling
Skill Level Beginner
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
12. Data Validation
13. User Authentication
14. Improving the Simple CMS
15. Debugging and Error Handling
16. Introducing More Advanced Topics
- 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.