Take the 2-minute tour ×  here is mobile.js  //= require jquery
//= require iui //= require faye-updater //= require anonymous-
chat //= require anonymous-vote //= require_self  here is how i
include scripts  <%= content_for :head do %> <%=
javascript_include_tag "#{Settings.faye.address}/client.js" %>
<%= javascript_include_tag "mobile" %> <% end %>  and what i get
after recompiling assets: mobile....js starts from  function
launch_faye_updater....  this is function from the faye-
updater.js and it must be included after jquery and iui. And it
does not work because of wrong inclusion order. How to make
Rails include assets in right order ?  UPD: This is in
production mode Rails 3.2.8  share|improve this question What
version of Rails are you using? It looks like you're doing the
right thing to compile the assets in the right order. Have you
added mobile.js to be compiled in the environments
configuration? Set the config value config.assets.precompile +=
%w( mobile.js ) –  joonty Nov 22 '12 at 9:29 yes, i have