が見つかりません私はマイケル・ハートルによってRailsのチュートリアルにルビーを使用しています - 第8章 - 私が持っているファイルnew.html.erbでのRails 3は、Ruby第8章チュートリアル部分的なファイル
:
<h1>Sign up</h1>
<%= form_for(@user) do |f| %>
<%= render 'shared/error_messages' %>
Iを作成されたファイルのアプリ/ビュー/共有/ _error_messages.html.erb
私は、テストを実行する場合:バンドルのexec RSpecの仕様/要求/ users_spec.rbをI取得するには、次のエラーメッセージ:
障害:
ユーザーは失敗をサインアップする新しいユーザーを作るべきではありません
Failure/Error: visit signup_path ActionView::Template::Error: Missing partial shared/error_messages with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/Users/username/rails_projects/my_sample_app/app/views"
ユーザーは成功が
Failure/Error: visit signup_path ActionView::Template::Error: Missing partial shared/error_messages with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en, :en]} in view paths "/Users/username/rails_projects/my_sample_app/app/views"
「<%=レンダリング」/ shared/error_messages '%>' – apneadiving
で置き換えた場合はどうしたらうまくいかないのですか? AptanaStudio3/configuration/org.eclipse.osgi/bundles/84/1/.cp/bundles/rails.ruble/commands/AptanaStudio3を私のエディタとして使用しています。とにかくrspecを実行しようとしましたが、同じエラーが発生しました – user814455
本当に奇妙で、他のアイデアはありません。 – apneadiving