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 Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

I get a Coffee error, why is that?

ExecJS::ProgramError in Statuses#index

Showing X:/WebProjects/treebook2/app/views/layouts/application.html.erb where line #6 raised:

TypeError: Object doesn't support this property or method (in X:/WebProjects/treebook2/app/assets/javascripts/statuses.js.coffee

Mike Rogers
Mike Rogers
5,280 Points

Can you share the contents of app/assets/javascripts/statuses.js.coffee ?

2 Answers

After some digging the answer is that there was sort of windows bug in the CoffeeScript gem

need to inset gem 'coffee-script-source', '1.8.0' into the gemfile, and run bundle update coffee-script-source

I have the same problem. Can you explain in detail how did you resolve it?

defauly content, since this is a new app

# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/