I have a couple of sites that are set up in the same way (rails 3.1.3) as far as I can tell. One of them serves up the assets (js and css) fine in production the other doesn't.
Both sites have this in their application.html.erb
<%= stylesheet_link_tag "application" %> <%= javascript_include_tag "application" %>
Both sites work fine in development but when they run in production the working site looks like this...
<link href="/assets/application-c4ecd302f7655f2bf6c424146c290463.css" media="screen" rel="stylesheet" type="text/css" /> <script src="/assets/application-91e6e03ee56f438681c75dcf42c80529.js" type="text/javascript"></script>
and the broken site looks like this...
<link href="/stylesheets/application.css" media="screen" rel="stylesheet" type="text/css" /> <script src="/javascripts/application.js" type="text/javascript"></script>
Now I can just insert the correct lines into the application.html.erb file and things work fine but I would like to know how this should really be handled.
Does anyone know which configuration option I have overlooked to make this work?