Micheal Hartl ch 7

时间:2016-02-05 14:54:53

标签: ruby-on-rails

我是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"

提前感谢您的帮助!

1 个答案:

答案 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

这是一个非常简单的错误消息。