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

Anthony Pham
Anthony Pham
6,770 Points

Cant load localhost:3000/todo_lists

I keep getting to page that says:

ExecJS::ProgramError in TodoLists#index

TypeError: Object doesn't support this property or method

Rails.root: C: /Users/ Anthony/Documents/odot

Saw the question relatining to this problem and tried installing the NodeJS gem but its still not working. I think I might be doing something wrong when installing NodeJS.

Are you working on a Windows machine?

Can you show your application.html.erb code? Your todo_list index.html.erb code?

Ezekiel dela Peña
Ezekiel dela Peña
6,231 Points

Does your localhost:3000 running?, The one with the "Getting Started" if yes click on the "About your application’s environment" and see if you have your NodeJS running as JS RunTime. If that's the case then you've no problem with installing the NodeJS