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 trial

Ruby Build a Todo List Application with Rails 4 Build a Todo List Application with Rails 4 Generate a Scaffold

Derek Kauble
Derek Kauble
2,855 Points

Action 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:inapp_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 %>

simon iribarren
simon iribarren
7,909 Points

Same Error!! any help?? i am trying to run it on Windows line 6 "<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>"

2 Answers

simon iribarren
simon iribarren
7,909 Points

I 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!

Thanks a lot, it works! But, why ..?