36

I started a new rails 5.1.4 project but I have forgotten to add --skip-coffee on rails new.

Is there a way to remove the coffeescript dependency without creating a new project?.

Usama Abdulrehman
  • 1,041
  • 3
  • 11
  • 21
JuanCrg90
  • 1,006
  • 13
  • 24

1 Answers1

80
  1. Remove or comment out gem 'coffee-rails' from Gemfile.
  2. Change Javascript files that ends with .js.coffee to .js.
  3. Add config.generators.javascript_engine = :js to your application.rb.
  4. Make sure your tmp cache is cleared with rake tmp:cache:clear
mlunoe
  • 4,422
  • 4
  • 32
  • 43
ogirginc
  • 4,948
  • 3
  • 31
  • 45