ITeye博客

rspec

yangbinfc · 2011-03-18 13:46 · Markdown

使用rspec_scaffold 代替 scaffold_resource

rails rspec_scaffold post title:string body:text author:integer created_at:datetime updated_at:datetime
rails3: rails g rspec:install rails g scaffold
会生成:model controller helper views

spec/models/post_spec.rb

rspec 到需要到rspec目录下才可以

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。