Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDerek Kauble
2,855 PointsAction Controller: Exception ExecJS::ProgramError in TodoLists#index
Showing C:/Users/Kauble/Documents/odot/odot/app/views/layouts/application.html.erb where line #6 raised:
TypeError: Object doesn't support this property or method
Rails.root: C:/Users/Kauble/Documents/odot/odot
Application Trace | Framework Trace | Full Trace
app/views/layouts/application.html.erb:6:in
app_views_layouts_application_html_erb_109187566_78360680'`
Can't view application in browser, keep getting this error. Looked at line 6 in that file, and don't see the issue. Here is the line: <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
2 Answers
simon iribarren
7,909 PointsI Just find the answer, in the \app\views\layouts\application.html.erb i changue
"...javascript_include_tag 'application', 'data-turbolinks-track' => true %>"
to
"...javascript_include_tag 'defaults', 'data-turbolinks-track' => true %>"
and its done!
Pau Garcab
7,543 PointsThanks a lot, it works! But, why ..?
simon iribarren
7,909 Pointssimon iribarren
7,909 PointsSame Error!! any help?? i am trying to run it on Windows line 6 "<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>"