From the course: Ruby on Rails 6 Essential Training
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Challenge: Pages CRUD - Ruby on Rails Tutorial
From the course: Ruby on Rails 6 Essential Training
Challenge: Pages CRUD
(upbeat music) - [Instructor] It's time for a challenge assignment. This challenge will give you the opportunity to use everything we've learned in this chapter. Your objective is going to be to create the CRUD for pages. The same create, read, update, and delete processes that we just created for subjects, you're now going to do on your own for pages. You want to make sure that you have routes to find. Those routes should point to controller actions. You should have index, show, new, create, edit, update, delete, and destroy. Try writing those actions without picking at the SubjectsController. Try to remember what each one of those actions ought to do and write the code for it. And you can always look at the SubjectsController if you get stuck or if you want to double check your work. You'll also want to create templates for those actions. For those, you can copy the HTML that was used in the subjects and modify it to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Read action: Index4m 20s
-
(Locked)
Read action: Show4m
-
(Locked)
Adding basic forms to templates4m 51s
-
(Locked)
Create action: New4m 12s
-
(Locked)
Create action: Create5m 5s
-
(Locked)
Using strong parameters to regulate input4m 57s
-
(Locked)
Update actions: Edit and update6m 19s
-
(Locked)
Using partials and helpers to organize code6m 36s
-
(Locked)
Delete actions: Delete and destroy5m 50s
-
(Locked)
Challenge: Pages CRUD1m 23s
-
(Locked)
Solution: Pages CRUD4m 50s
-
(Locked)
-