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 trialNoobs guru
3,847 PointsI 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
2 Answers
Noobs guru
3,847 PointsAfter 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
Barry Lau
236 PointsI have the same problem. Can you explain in detail how did you resolve it?
Noobs guru
3,847 Pointsdefauly 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/
Mike Rogers
5,280 PointsMike Rogers
5,280 PointsCan you share the contents of app/assets/javascripts/statuses.js.coffee ?