Closed JeanMertz closed 13 years ago
You have to have a js runtime, install assets group and you need bundler to require it in production in order to use this feature. Feel free to provide a patch to the docs in order to help others :). Thanks for the report.
@JeanMertz Thank you for posting this!! I had no idea what was happening since everything was working perfectly in development. Took me a while to hunt it down. Also, while @guilleiguaran's update to the readme is definitely a step in the right direction I think it might be beneficial to say something more obvious. Would you guys be ok with something like "You will get 500's unless you..." Thoughts?
I just ran into a problem where my
create.js.coffee
file was working indevelopment
but stopped working inproduction
(on Heroku). The logs show that Rails isn't even looking for a coffee handler:This is the (important) part of my Gemfile:
Only after I moved
coffee-rails
outside of the:assets
group, things started working. Perhaps it would be a good idea to somehow make this clear in the readme, and perhaps even ship Rails with thecoffee-rails
plugin being placed outside theassets
group.