Sinatra、CouchDB 和 Sinatra 入门沙发休息?
我刚刚开始学习 CouchDB 和 Sinatra,但正在努力寻找一些通过 CouchRest 集成两者的基本示例。 CouchRest 文档假设的内容太多了,对我来说还没有什么用处。
有人有有用的示例/文章/文档的链接吗?
I'm just starting to learn my way around CouchDB and Sinatra, but am struggling to find some basic examples of integrating the two via CouchRest. The CouchRest docs assume a little too much to be useful to me yet.
Does anyone have links to useful examples/articles/docs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Sinatra 文档非常棒并且易于使用。
couchrest 存储库中的示例似乎显示了很多用例。 https://github.com/couchrest/couchrest_model
理解代码(尤其是前沿技术)的最佳方式ruby)只是阅读代码。
已更新,包含教程链接:http://japhr.blogspot .com/2009/03/spike-sinatra-and-couchdb.html
Sinatra docs are pretty great and easy to work with.
The examples in the couchrest repo seem to show a lot of use cases. https://github.com/couchrest/couchrest_model
The best way to understand code (and especially bleeding edge ruby) is to just read the code.
Updated, with link to tutorial: http://japhr.blogspot.com/2009/03/spike-sinatra-and-couchdb.html
您可能也应该研究一下 couch_potato 库,它正好达到了沙发休息和活动记录的基本方法之间的最佳点。来源和示例:https://github.com/langalex/couch_potato
You should probably look into the couch_potato library too, it just hits the sweet spot between the basic approach of couch rest and active record. Source and examples: https://github.com/langalex/couch_potato