# Scaffold issue

**URL:** <https://www.ruby-forum.com/t/scaffold-issue/114980>\
**Category:** Rails\
**Created:** [September 19, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/scaffold-issue/114980 "2007-09-19T13:26:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![myst\_tt](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/e47774/32.png) [@myst\_tt](https://www.ruby-forum.com/u/myst_tt)\
**Post date:** [September 19, 2007, 1:26pm UTC](https://www.ruby-forum.com/t/scaffold-issue/114980/1 "2007-09-19T13:26:41Z")

</div>

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/](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
