仿照 http://railscasts-china.com/episodes/1-rails-tutorial 的例子 让大家看看用 emacs 来写 rails 是多么方便
先用 scaffold 生成 post
ctrl +c ctrl +c e

post

生成成功

生成数据库
在浏览器中查看刚才生成的

跳转到 post model

添加校验确定 title 是必填的。

跳转到 Posts 的 Controller

现在可以 C+c C+c g b

如果在 def index ,也可以 C+c C+c g v 直接跳转到 对应的 view

先弄这么多吧