Ruby on Rails Thursday, August 28, 2014

Hello everyone,

I am trying to include a JS library (GeoExt) in an existing Rails application. Following the Asset Pipeline guide, I did:

  • Created the folder /vendor/assets/javascripts/GeoExt to where I copied all the JS modules.

  • Created the file /vendor/assets/javascripts/GeoExt/index.js containing the //= require_tree . directive.

  • In the application.js file included the directive //= require GeoExt.

With this setting I am getting a 404 error every time a module from this library is referenced. What am I doing wrong?

Thank you.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c2d07e5d-6a63-49c0-959d-cec12f3101b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment