开发者

How can I create a web service in rails 3?

I am trying to create a simple 开发者_如何学Goweb service in rails 3, but when I use rails g web_services remote it doesn't work, the error is: Could not find generator web_service.

I tried to install actionwebservice gem, but the problem continues...

What should I do here?

thanks


actionwebservice is a very, very, very old gem. If you're looking to create an API then I would take a look at Grape and see if that fits your need.


If you would create a rest api " without any gem " . if you want using gem use " either Grape " or " rest-client " as per your requirements.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜