I am complete new to Ruby on Rails, with great difficulty I have installed the software on my Windows 8 machine. Now I am just following this guide to create a sample Hello World example.
When I am trying to follow the steps given given in section 4.3 Setting the Application Home Page, I started facing issue.
Here is what I did:
1) Open the file config/routes.rb in your editor.
2) Uncommented the line root 'welcome#index'
3) restarted the server.
Now when I access the URL as localhost:3000
then I started getting below error on my browser:
ExecJS::ProgramError in Welcome#index
Showing E:/Rails/blog/app/views/layouts/application.html.erb where line #6 raised:
TypeError: Object doesn't support this property or method
(in C:/RailsInstaller/Ruby2.0.0/lib/ruby/gems/2.0.0/gems/turbolinks-2.5.3/lib/assets/javascripts/turbolinks.js.coffee)
Extracted source (around line #6):
<head>
<title>Blog</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
Rails.root: E:/Rails/blog
Can you please tell me why I am getting this issue?
Also is developing applications using Ruby On Rails is very? because it has been 2 days since I am trying but till now I faced so many issues before I see the Hello World example. I have worked on Java based frameworks but I never faced so much difficulty in installation or creating basic applications.
In your /app/views/layouts/application.html.erb line 5 and 6, change the first parameter application to default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With