Note that there are some explanatory texts on larger screens.

plurals
  1. POCoffeeScript not updating in Rails 3.1
    primarykey
    data
    text
    <p>I am working on a Rails 3.1 app that makes use of CoffeeScript. As a new Rails developer, I have been making changes to some configuration to try to make the most of the asset pipeline and Heroku. </p> <p>However, I am now in a position whereby, no matter what changes I make to the app/assets/javascripts/*.js.coffee files, the local Rails development server refused to pick up those changes and recompile the app. The only way I can trigger recompilation of .js.coffee files is to stop WEBrick and restart it.</p> <p>This problem does not seem to affect my pushes to Heroku, however. Those seem to recompile just fine.</p> <p>Some details on my setup:</p> <ul> <li>I do not compile assets locally with rake assets:precompile. Instead, I use the "#2 compiling assets during slug compilation" method described <a href="https://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar" rel="nofollow">here</a>.</li> <li><p>The relevant parts of my Gemfile look like this:</p> <pre> gem 'rails', '3.2.3' gem 'rake', '0.9.2.2' gem 'activesupport', '~> 3.2.3' gem 'json' group :assets do gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' .. end </pre></li> <li><p>My config/environments/development.rb has these relevant (I think) lines. If something here looks odd, I don't really recall why the change was made (though perhaps I documented something in my SCM).</p></li> </ul> <pre> config.consider_all_requests_local = true config.action_controller.perform_caching = false # Print deprecation notices to the Rails logger config.active_support.deprecation = :log # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin # Do not compress assets config.assets.compress = false # Expands the lines which load the assets config.assets.debug = true config.assets.compile = true config.serve_static_assets = true # Generate digests for assets URLs config.assets.digest = true </pre> <p>Any thoughts on what to look for? Thanks.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload