摘要:
重构3.3 有点儿动态内容的页面rails new命令创建了布局文件,暂时重命名。$ mv app/views/layouts/application.html.erb foobar添加标题测试:$ vim spec/requests/static_pages_spec.rbrequire 'spec_helper'describe "Static pages" do describe "Home page" do it "should have the content 'Sample App'" do 阅读全文
摘要:
新建项目:cd ~/rails_projectsrails new sample_app --skip-test-unitcd sample_app添加gem:group :development,:test do gem 'sqlite3' gem 'rspec-rails','2.13.1'endgroup :test do gem 'selenium-webdriver','2.0.0' gem 'capybara','2.1.0'endgroup :production do 阅读全文