まず、私はまだ RoR の学習で忙しいため、理解が限られています。新しい単純なプロジェクトを作成し、「Person」という名前の最初の足場を生成しました。WEBrick サーバーを起動すると、localhost:3000/people に移動すると、次のランタイム エラーが発生します。
C:/Users/Dean/Desktop/guestbook/app/views/layouts/application.html.erb を示す People#index の ExecJS::RuntimeError 行番号 6 が発生した場所: (in C:/Users/Dean/Desktop/guestbook/ app/assets/javascripts/ people.js.coffee ) 抽出されたソース (6 行目あたり):
3: <head>
4: <title>Guestbook</title>
5: <%= stylesheet_link_tag "application", :media => "all" %>
6: <%= javascript_include_tag "application" %>
7: <%= csrf_meta_tags %>
8: </head>
9: <body>
さらに説明が必要な場合はお知らせください。喜んで質問を更新します。私は専門家ではありませんが、何か関係があるようです..coffeescriptの宝石ですか?私は本当にここで唾を吐くだけです... よろしくお願いします!
people.js.coffee:
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/