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

Challenge: Pages CRUD - Ruby on Rails Tutorial

From the course: Ruby on Rails 6 Essential Training

Start my 1-month free trial

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…

Contents