I’ve followed the guide on
I’ve made the installation, made a new site, controller called welcome,
fired up the server and added the following line to routes.rb file
root ‘welcome#index’
After trying to visit localhost:3000, it gives me the following error:
ExecJS::ProgramError in Welcome#index
Showing c:/Sites/blog/app/views/layouts/application.html.erb where line
#7 raised:
TypeError: Object doesn’t support this property or method
It highlights line #7 as error, which is this line:
<%= stylesheet_link_tag ‘application’, media: ‘all’,
‘data-turbolinks-track’: ‘reload’ %>
I do not want to switch the stylesheet and javascript link tag to
‘default’ because I’ve read that it will cause issues later and there is
another underlying issue here.
This is driving me nuts from yesterday and I don’t know what to do
please help!