我是rails的新手,我被困在Michael Hartl教程的第7章。我在7.4.3中第一次注册后发现了这个错误:
Missing partial shared/_error_messages with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]}. Searched in: * "/usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.0.0.beta3/lib/action_dispatch/templates" * "/home/ubuntu/workspace/sample_app/app/views" * "/usr/local/rvm/gems/ruby-2.2.1/gems/web-console-2.0.0.beta3/app/views"
提前感谢您的帮助!
答案 0 :(得分:3)
Missing partial shared/_error_messages :formats=>[:html], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :jbuilder]
missing partial
。 shared/
_error_messages
.html
扩展名,后跟一个.erb, .builder, .raw, .ruby, .coffee, .jbuilder
这是一个非常简单的错误消息。