什么是所有“约定"?对于 Ruby on Rails? [英] What are all the "conventions" for Ruby on Rails?

查看:13
本文介绍了什么是所有“约定"?对于 Ruby on Rails?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名进入 Rails 的 Django 人员,我想要一份向我展示所有流行约定"的指南.

I'm a Django person going into Rails, and I want a guide that shows me all the popular "conventions".

例如:多个,_form.html.erb,诸如此类的东西.

For example: plurality, _form.html.erb, stuff like that.

有人可以在这里列出它们吗?还是网页?

Can someone list them here? Or a webpage?

推荐答案

如果你想要官方的约定,那么没有什么能比得上 Rails 的书了:使用 Rails 进行敏捷 Web 开发

If you want the official conventions, then nothing beats the original Rails book: Agile Web Development with Rails

但是,如果您想要不成文的约定,这是一个好的开始:acts_as_good_style

But if you want the unwritten conventions, here's a good start: acts_as_good_style

这篇关于什么是所有“约定"?对于 Ruby on Rails?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆