开发者

Restful service in rails without scaffold?

开发者 https://www.devze.com 2023-03-13 20:47 出处:网络
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??

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消