Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to replace CoffeeScript with JavaScript in Rails application? #32

Open
dongtong opened this issue Nov 22, 2017 · 0 comments
Open

How to replace CoffeeScript with JavaScript in Rails application? #32

dongtong opened this issue Nov 22, 2017 · 0 comments
Labels

Comments

@dongtong
Copy link
Owner

Sometimes, we don't want to use CoffeeScript engine in Rails application, we want to use JavaScript engine, How do that?

Edit application config in config/application.rb

class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.1
    # replace coffeescript with js
    config.generators.javascript_engine :js
end
@dongtong dongtong added the Rails label Nov 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant