How do I prevent Rails to enable CoffeeScript and use plain JavaScript instead?
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
相关文章
- Right way to deploy Rails + Puma + Postgres app to
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
- Rspec controller error expecting <“index”> but
- Factory_girl has_one relation with validates_prese
Just name your files
.js
instead of.js.coffee
. This is a Tilt naming convention. Similarly, if you don't want to use SCSS, use.css
instead of.css.scss
. Or if you'd rather use the Sass syntax with semantic whitespace, use.css.sass
.By default,
.js.coffee
files are created by certain commands (notablygenerate controller
) as long asgem 'coffee-script'
is in the Gemfile, so you'll want to comment that out.Comment out
gem 'coffee-script'
in GemfileComment out
# gem "coffee-script"
in your gemfile or just use .js vs .js.coffee files