# Another problem with scaffold

**URL:** <https://www.ruby-forum.com/t/another-problem-with-scaffold/137022>\
**Category:** Rails\
**Created:** [May 8, 2008, 11:28am UTC](https://www.ruby-forum.com/t/another-problem-with-scaffold/137022 "2008-05-08T11:28:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stone](https://www.ruby-forum.com/u/stone)\
**Post date:** [May 8, 2008, 11:28am UTC](https://www.ruby-forum.com/t/another-problem-with-scaffold/137022/1 "2008-05-08T11:28:58Z")

</div>

Hello

me another fresh man of ROR  
also using “agile web development with rails” as a reference book

I got problem with scaffold now  
I use Rails2.0.2,ruby 1.8,apatana platform , generate the products  
controller and the product model  
It seems work perfectly

but when I try to add a new action name “ship” into the controller and  
a new page names “ship.rhtml” corresponding to it  
things goes wrong, it looks like this:  
…  
ActiveRecord::RecordNotFound in ProductsController #show

Couldn’t find Product with ID=ship

```auto
the probelm is , it's not an ID I input , i want it to be an action
request!!

what can i do to avoid this problem? or just abandom scaffold ?
```

---

<div class="post-metadata">

**Author:** ![stone](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c89c15/32.png) [@stone](https://www.ruby-forum.com/u/stone)\
**Post date:** [May 8, 2008, 1:05pm UTC](https://www.ruby-forum.com/t/another-problem-with-scaffold/137022/2 "2008-05-08T13:05:20Z")

</div>

On May 8, 10:06 am, stone [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> request!!  
> Hi,

It’s a problem with your routes and the fact that you are using a non-  
RESTful action name. If you want to remain true to RESTful  
conventions, you should probably create a shipping controller. If you  
want to keep the action in your current controller, you will need to  
add a specific route to your routes.rb file.

Regards

Robin
