Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 ..?