2

Using Rails 4, Unicorn and Ngnix in dev. I have a facebook.js.erb file with this code:

FB.init({
    appId: '<%= Rails.application.config.facebook.id %>'
});

When I change the value of Rails.application.config.facebook.id in development.rb and reload facebook.js in the browser, it does not reflect the change.

Here are all the things I tried that fail to update facebook.js:

The only thing that works is to make some modification to facebook.js.erb (eg. add a space). There is obviously some kind of checksum caching happening pre-erb. How do I disable it?

Community
  • 1
  • 1
Arman
  • 1,208
  • 1
  • 12
  • 17

0 Answers0