0
I am new as ruby programmer on Rails.
I ran on windows console Rails generate controller hello then created the page in the View folder an index.html.erb file, then configured the route in the Routes.erb file by creating the following line;
get 'hello/index'
And I typed in the URL localhost:3000/hello/index generated this error;
Could someone tell me what’s going wrong?
because I can’t get my page up if I set the route correctly?
Manage to solve the problem through this posting
in the archive views/layouts/Aplication.html.erb I switched that out;
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
therefore;
<%= stylesheet_link_tag 'default', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'default', 'data-turbolinks-track' => true %>
Please, I’d just like to know why you decided.
I installed the latest version of Javascript and it didn’t work, then I installed Nodejs and it didn’t work, any more suggestions? please
– wladyband
Try using any of these solutions: http://stackoverflow.com/questions/8362458/error-when-running-rails-app-execjsruntimeerror
– Londerson Araújo