# Error with RESTful model generated with scaffold\_resource

**URL:** <https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115266>\
**Category:** Rails\
**Created:** [September 22, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115266 "2007-09-22T22:42:12Z")\
**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 22, 2007, 10:42pm UTC](https://www.ruby-forum.com/t/error-with-restful-model-generated-with-scaffold-resource/115266/1 "2007-09-22T22:42:12Z")

</div>

I created a model (User) using the scaffold\_resource generator and get  
the following error when I click “Edit” with ActiveScaffold:

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
