Script/generate resources

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
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

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

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

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs