Rashmi
Rashmi

Reputation: 629

Restful service in rails without scaffold?

I am working on Ruby on Rails 3.0.6. Is there a way to create Restful services in rails without the use of scaffold generation??

Ref : http://www.ibm.com/developerworks/java/library/j-cb08016/
http://jarrettcolby.com/articles/3-rest-and-ruby-on-rails-the-big-picture/

Thanks in advance!

Upvotes: 1

Views: 488

Answers (1)

Jeff Schoolcraft
Jeff Schoolcraft

Reputation: 381

Of course. Scaffolding generators are just a quick way to boot strap. You don't have to use them at all.

You could script/generate model, then manually create your controller and views.

rails g will show you all the generators. rails g resource will explain the options for creating a resource.

Upvotes: 1

Related Questions