-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
开发ruby-china的客户端,API到哪儿找到?我没有找到ruby-china的api文档。。。。? #25
Comments
lib/api. code is documentation. |
OK ,3Q |
咨询一下。。。Grape::Entity 这个的主要作用是什么? 还有expose ? |
Grape::Entity对应相应的ActiveRecord对象(我们不直接暴露AR对象,那样既无必要也容易返回敏感数据),expose用于指定要在api中暴露出去的属性。 |
Grape::Entity 可以来自不同的ActiveRecord吗?因为我想从不同的表查询出数据。。。如果可以,怎样表示呢?谢谢非常 |
可以啊。你看现在的代码能找到这样的用法。 iPhoneから送信 On 2012/05/10, at 1:54, Crosslereply@reply.github.com wrote:
|
class Reply < Grape::Entity |
ruby-china 中的 spec目录是干什么用的? |
还有ruby-china中的site-node表db文件是再哪里 啊?我怎么没有找到?谢谢 |
spec: test site-node: db/schema.rb |
db/schema.rb中没有site-node表的结构。。。。。 |
咨询,开发ruby-china的客户端,API到哪儿找到?我没有找到ruby-china的api文档。。。。?
The text was updated successfully, but these errors were encountered: