Not included assets in rails app -


my application.js (in app/assets/) looks like:

//= require jquery //= require jquery_ujs //= require_tree . 

the problem generated html contains (not tree):

<script src="/assets/application.js?body=1" type="text/javascript"></script> 

what expected e.g. jquery.js, etc.

this problem occurs on mac os x development machine. (tested on opensuse - unix machine , works).

what have tried:

  1. replace gemfile.lock (now identical unix machine except json ~> 1.8.2 instead of 1.8.0) , reinstall gems:
      gem uninstall --all      bundle install 
  1. change ruby version (tested 1.9, 2.1, 2.2)
  2. googling around wrong sprockets (without success)
  3. elaborating rake assets:precompile --track
     ** invoke assets:precompile:all (first_time)     ** execute assets:precompile:all     ** invoke assets:precompile:primary (first_time)     ** invoke assets:environment (first_time)     ** execute assets:environment     ** invoke environment (first_time)     ** execute environment     ** invoke tmp:cache:clear (first_time)     ** execute tmp:cache:clear     ** execute assets:precompile:primary     compiled application.js  (1ms)  (pid 20541)     compiled application.css  (0ms)  (pid 20541) 

ruby version 2.2, rails version 3.1.12. include gemfile if necessary bundle install works without problem.

the solution (don't ask me why) removing whole project folder , clone again git repository. (and yes "git status" saying no change , everything-up-to-date).

the reason cache of rails on mac os x. maybe can clear behavior of webrick...


Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -