Saturday 15 September 2012

coffeescript - Rails 3.1 asset pipeline not working -


I am in the process of upgrading an old app on the asset pipeline but to follow the Ryan Bites tutorial for upgrading 3.1 Still not able to take advantage of the pipeline, to finish my upgrade process I created a new rail app and tried some coffee scripting and added other files to the / assets / javascript folders, Since no extra files were render in addition to application.js.

This is my application.js file:

  // This is a clear file that will be compiled to include all the files listed below. // Add new javascript / coffee code to different files in this directory and they will not automatically add / code to / include code in the compiled file accessible from http://example.com/assets/application.js // It goes straight here, but if you do this, it will appear below the // file. // // = Required jquery // is required jquery_ujs // require_tree Warning ("This displays is OK");   

And additional dogs.js.coffee file:

  # Keep all the behaviors and hooks related to the matching controller here. # All logic will be available automatically in application.js # You can use a coffee script in this file: http://jashkenas.github.com/coffee-script/ Warning "can not see it!" It seems to be a sprockets issue, but I do not really know the same problem with any of the information when, or are not included in application.js via additional JavaScript files within the property folder Need_tree  

Here is my gem file:

  Mani 'Rail', '3.1.1' Mani 'sqlite3' Group: Assets Mani 'sass-rails',' ~ & gt; 3.1.4 'Gems' coffee-rail ',' ~ & gt; 3.1.1 'Gem' Eugrifier ',' & gt; = 1.0.3 'end gem' jquery-rails' group: test do # Pretty printed test output mem 'turn',: need = & gt;  

It seems that the ruby ​​version was my problem, I was downgraded to 1.9.3 rubles, then the gems were restored and it works now!

No comments:

Post a Comment