开发者

How can I create a web service in rails 3?

开发者 https://www.devze.com 2023-02-04 00:31 出处:网络
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 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

精彩评论

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

关注公众号