# Script/generate resources

**URL:** <https://www.ruby-forum.com/t/script-generate-resources/134998>\
**Category:** Rails\
**Created:** [April 16, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/script-generate-resources/134998 "2008-04-16T23:36:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2008, 11:36pm UTC](https://www.ruby-forum.com/t/script-generate-resources/134998/1 "2008-04-16T23:36:02Z")

</div>

Hi,

I am attempting to use script/generate resource. According to this  
post:  
[http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0](http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0)  
it should create all of my methods in my controller automatically. For  
some reason, it creates the controller, but doesn’t create any of the  
methods.

Am i missing something? Is there somewhere that tells me exactly what  
these scripts do?

Thanks!

Ryan L.  
B2B [Logic.net](http://Logic.net)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 16, 2008, 11:55pm UTC](https://www.ruby-forum.com/t/script-generate-resources/134998/2 "2008-04-16T23:55:59Z")

</div>

Sorry, that should be script/generate resource  
(no s)

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [April 17, 2008, 10:10pm UTC](https://www.ruby-forum.com/t/script-generate-resources/134998/3 "2008-04-17T22:10:58Z")

</div>

Problem Solved.

Apparently script/generate resource does not create the controller  
actions for you (not too sure why not).

For information take a look at this post:  
[http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0](http://www.softiesonrails.com/2008/1/29/rails-rest-101-meets-rails-2-0)

He also created a TextMate snippet at:  
[http://softiesonrails.com/2007/12/14/textmate-snippet-for-restful-controller](http://softiesonrails.com/2007/12/14/textmate-snippet-for-restful-controller)  
that will create all of the methods for you.
