ExecJS::ProgramError in Welcome#index TypeError: Object doesn't support this property or method

前端 未结 2 1429
说谎
说谎 2021-01-02 15:29

I am complete new to Ruby on Rails, with great difficulty I have installed the software on my Windows 8 machine. Now I am just following this guide to create a sample Hello

相关标签:
2条回答
  • 2021-01-02 16:14

    Although the above solution works (from Gaurav Gupta), the better one would be to downgrade the version of 'coffee-script-source' to v1.8.0 because the problem comes from the version 1.9.0 and over:

    Add in blog/GemFile the coffee-script-source v1.8.0 (v1.9.0 does not work on Windows)

    #For Windows it works with CofferScript v1.8
    gem 'coffee-script-source', '1.8.0'
    

    Then stop the server (if it was running) and do:

    bundle update coffee-script-source
    

    It should now be working fine.

    Replacing the "application" by "default" in blog\app\views\layouts\application.html.erb line 5 and 6 will prevent to load extra files (resulting in CSS and javascript files not used in the page).

    0 讨论(0)
  • 2021-01-02 16:30

    In your /app/views/layouts/application.html.erb line 5 and 6, change the first parameter application to default.

    0 讨论(0)
提交回复
热议问题