S
S
Sergey Yermolayev2016-12-10 10:49:22
Ruby on Rails
Sergey Yermolayev, 2016-12-10 10:49:22

CRUD app Ruby on Rails?

Hello! There was a need to study ror. I need to be able to create deletes, etc. in the admin part of the application. site pages, open close access to them, add a description. I created a Page model, a controller with new, destroy, update, etc. methods, pages are created, I can view the list of pages, delete them, display them in the menu using array iteration, go to the page using a link like /pages/1, etc. . Actually the question is, how or is it possible to create a template for each page at all? route? For example, I create a Contactns page, I can go to it using the /pages/1 link, but I would like it to have its own route and namesite/about type template.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question