# Error with RESTful model generated with scaffold\_resource

**URL:** <https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115277>\
**Category:** Rails\
**Created:** [September 23, 2007, 12:55am UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115277 "2007-09-23T00:55:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chirag](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ecccb3/32.png) [@chirag](https://www.ruby-forum.com/u/chirag)\
**Post date:** [September 23, 2007, 12:55am UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115277/1 "2007-09-23T00:55:20Z")

</div>

I created a RESTful model (User) using the scaffold\_resource generator  
and used ActiveScaffold on it. Unfortunately, I get the following  
error when I click “Edit” for a particular row:

ActionController::RoutingError (no route found to match “/user/1;edit”  
with {:method=\>:“get/”}):

Like the instructions suggested, I added the active\_scaffold =\> true  
to config/routes.rb and emptied out the built-in Rails scaffolding in  
the generated controller.

I suspect that I misinterpreted the term “empty out”. Do I get rid of  
all the methods completely and replace it with active\_scaffold :user?

Any ideas on how to fix this error?

Thanks!  
Chirag
