Forum: Rails-core (closed, excessive spam) scaffolding a RESTful web service (rails2.1)

Posted by Luca Scaljery (jeanluca)
on 2008-07-02 15:33
Hi All

I'm trying to build a RESTful web-service. Everywhere it is suggested to
do

./script/generate scaffold_resource .....

but that doesn't work anymore. I think it has todo with the rails
version (2.1)

Any suggestion how to do this in rails 2.1 ?

Thnx a lot
LuCa
Posted by Matt Darby (mdarby)
on 2008-07-02 15:41
(Received via mailing list)
On Jul 2, 2008, at 9:33 AM, Luca Scaljery wrote:
> I'm trying to build a RESTful web-service. Everywhere it is  
> suggested to
>
> Any suggestion how to do this in rails 2.1 ?

Just use "./script/generate scaffold ..."


Thanks!

Matt Darby, M.S.
Rails | PHP | Linux | MySQL | IT

Email: matt@matt-darby.com
Skype: matt-darby
Web: http://blog.matt-darby.com
Posted by Luca Scaljery (jeanluca)
on 2008-07-02 16:30
I was just reading:

When Rails 2.0 performs scaffolding it assumes you are going to use 
RESTfull routing .....

Some links to ActiveResource documentation would we useful!

thnx
LuCa
Posted by James Nick Sears (Guest)
on 2008-07-03 10:08
(Received via mailing list)
Maybe you're looking for this:

http://api.rubyonrails.org/classes/ActionController/Resources.html#M000697

-JNS.
This topic is locked and can not be replied to.