4 Views - Running on external install - Rails


Using rails on my computer I tried to replicate the tutorial. I am getting an error.
ExecJS::ProgramError in Messages#index
Showing c:/Sites/MessengerApp/app/views/layouts/application.html.erb where line #5 raised:
TypeError: Object doesn't support this property or method
Rails.root: c:/Sites/MessengerApp

The server is responding with:
Started GET "/messages" for at 2016-02-29 08:47:12 -0500
ActiveRecord::SchemaMigration Load (0.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
Processing by MessagesController#index as HTML
Message Load (0.0ms) SELECT "messages".* FROM "messages"
Rendered messages/index.html.erb within layouts/application (15.7ms)
Completed 500 Internal Server Error in 5797ms (ActiveRecord: 0.0ms)

Please help me as I am trying to replicate everything on my computer so I can learn better.


I figured it out.

In your /app/views/layouts/application.html.erb
line 5 and 6, change the first parameter application to default.

I don't know why, but it only happen on Windows.
The parameter application works on web server.