Scaffold issue

In normal case, I could, for example, set a controller named
“admin” to manipulate model “product” by putting a line of code
“scaffold :product” in controller -admin.
However, I tried “scaffold_resource” to generate a RESTful model
“product”, how can I set controller “admin” to remain controlling this
RESTful model “product” ? If I did the same as normal
“scaffold :product” in controller -admin, the link from “admin”
controller still uses “action” - show, delete, edit, e.g. “http://
localhost:3000/admin/edit/1” rather than “http://localhost:3000/admin/
1;edit”.

Any simple command could generate a controller "admin" to

manipulate RESTful “product” to meet my needs?

Thanks!
MyST_tt

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs