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

查看:62
本文介绍了什么是所有“公约"? 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天全站免登陆