我想让错误闪现出现在railstutorial.org示例应用程序中。到目前为止,这是我所做的。谁能帮我找到的错误: 我RSPEC测试失败: 1) SessionsController POST 'create' invalid signin should have a flash.now message
Failure/Error: flash.now[:error].should =~ /i
railstutorial.org有一个建议,让我觉得有点奇怪。 It suggests this code: class ApplicationController < ActionController::Base
protect_from_forgery
include SessionsHelper
end
的include SessionsHelper使得从Appl
我通过Ruby on Rails的3教程书工作,在命令行键入以下: rake db:migrate
这产生以下警告。 WARNING: Global access to Rake DSL methods is deprecated. Please Include
... Rake::DSL into classes and modules which use the Rake DSL