开发者

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!


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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜