I'm trying to learn as much as I can about AREL. But I'm not sure what to look at.
我正在尽可能多地学习关于AREL的知识。但我不知道该怎么看。
I found some documentation on rubydoc, but it doesn't seem very good in terms of showing what are the "public API"/accessible things I can do. For example, I could not find any information on the "includes" method.
我在rubydoc上找到了一些文档,但就显示什么是“公共API”/可访问的东西而言,它似乎不太好。例如,我找不到有关“包含”方法的任何信息。
So, how exactly to learn most of what AREL has to offer? (i.e. without delving into the source code)
那么,究竟如何学习AREL提供的大部分内容呢? (即没有深入研究源代码)
5 个解决方案
#1
5
I think that this will be useful :
我认为这会很有用:
https://github.com/brynary/arel
https://github.com/brynary/arel
And an interesting asciicast :
还有一个有趣的asciicast:
http://asciicasts.com/episodes/215-advanced-queries-in-rails-3
http://asciicasts.com/episodes/215-advanced-queries-in-rails-3
#2
18
I got tired of reading tests and code, in the arel tree, so I put some slides together. They cover v2.x, I haven't even looked at v3 yet.
我厌倦了阅读测试和代码,在arel树中,所以我把一些幻灯片放在一起。它们涵盖了v2.x,我还没有看过v3。
#3
5
I wrote an article about Arel a few weeks ago (The definitive guide to Arel, the SQL manager for Ruby). It walks through the whole library and explains how things work internally and how you can use it from your own application.
几周前我写了一篇关于Arel的文章(Arel的权威指南,Ruby的SQL经理)。它遍历整个库并解释内部如何工作以及如何从您自己的应用程序中使用它。
#4
4
Yeah, I'm having a real hard time finding doc too. The Arel test suite might be of some use:
是的,我也很难找到doc。 Arel测试套件可能有一些用处:
https://github.com/rails/arel/blob/master/test/test_select_manager.rb
https://github.com/rails/arel/blob/master/test/test_select_manager.rb
#5
2
Complete documentation is here: http://rubydoc.info/github/rails/arel/master/Arel Look in the modules for specific methods.
完整的文档在这里:http://rubydoc.info/github/rails/arel/master/Arel查看模块中的具体方法。
#1
5
I think that this will be useful :
我认为这会很有用:
https://github.com/brynary/arel
https://github.com/brynary/arel
And an interesting asciicast :
还有一个有趣的asciicast:
http://asciicasts.com/episodes/215-advanced-queries-in-rails-3
http://asciicasts.com/episodes/215-advanced-queries-in-rails-3
#2
18
I got tired of reading tests and code, in the arel tree, so I put some slides together. They cover v2.x, I haven't even looked at v3 yet.
我厌倦了阅读测试和代码,在arel树中,所以我把一些幻灯片放在一起。它们涵盖了v2.x,我还没有看过v3。
#3
5
I wrote an article about Arel a few weeks ago (The definitive guide to Arel, the SQL manager for Ruby). It walks through the whole library and explains how things work internally and how you can use it from your own application.
几周前我写了一篇关于Arel的文章(Arel的权威指南,Ruby的SQL经理)。它遍历整个库并解释内部如何工作以及如何从您自己的应用程序中使用它。
#4
4
Yeah, I'm having a real hard time finding doc too. The Arel test suite might be of some use:
是的,我也很难找到doc。 Arel测试套件可能有一些用处:
https://github.com/rails/arel/blob/master/test/test_select_manager.rb
https://github.com/rails/arel/blob/master/test/test_select_manager.rb
#5
2
Complete documentation is here: http://rubydoc.info/github/rails/arel/master/Arel Look in the modules for specific methods.
完整的文档在这里:http://rubydoc.info/github/rails/arel/master/Arel查看模块中的具体方法。