Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby on Rails CoffeeScript failing

I have this error which is making it impossible to load my app

no such file to load -- coffee_script
  (in /Users/damien/projects/easyJobs/app/assets/javascripts/jobs.js.coffee)
Extracted source (around line #10):

7:  /[if lt IE 8]
8:     = stylesheet_link_tag 'ie.css', :media => 'screen, projection'
9:     = stylesheet_link_tag :application
10:     = javascript_include_tag :application
11:     = csrf_meta_tag
12: 
13:   %body

The files are all there but doesnt look like its seeing them for a reason beyond me :/ If anyone knows why this error may be happening let me know would be very much appreciated.

Damien

like image 897
Damien Avatar asked Nov 28 '11 14:11

Damien


1 Answers

Try adding to your `Gemfile:

group :assets do
  gem 'coffee-rails'
end

More info here

like image 72
fuzzyalej Avatar answered Sep 24 '22 15:09

fuzzyalej