Including CoffeeScript file in rails -


i have taken @ coffeescript , want try out in rails app. know rails 3.1 coffeescript included within rails. having issues getting work.

i have file called lens.js have renamed lens.js.coffee, , converted js coffee. screen casts have seen , blogs have read seemed needed. not picking file somehow.

get http://www.cairo.dev/javascripts/lens.js 404 (not found)  

is console dropping. including other js files.

= javascript_include_tag 'lens', 'jquery-ui.min', 'rails', 'application', 'popup', 'jquery.zclip', 'underscore-min' 

note: link haml

which should work since compiles coffeescript js. wondered if wasn't installed added gem 'coffee-script' gemfile , bundled still nothing.

am doing stupid. or missing?

try not add gem 'coffee-script' in gemfile but:

group :assets   gem 'coffee-rails' end 

if doesn't work, can try removing lens javascript_include_tag , make sure have line in application.js:

//= require_tree . 

Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -