Hi all,
we''re just in the process of upgrading to the new asset pipeline, but
I''m
having an annoying issue with Sprockets.
It turns out that I can''t enable both *debug* and *digest* in
development
mode. When I do, I get a Errno::ENAMETOOLONG because the digest becomes the
*entire* *content* of the file instead of a hex. I get this with both sass
and javascript.
Anyone have any idea what I''m doing wrong?
Thanks,
/C
The (things I think are) relevant information:
The actual error:
*Errno::ENAMETOOLONG in Welcome#index*
Showing <app-path>/app/views/layouts/simple.html.erb where line #18
raised:File name too long - <app-path>/app/assets/images/(function($) {
var
remotipart; ... *<rest of the concatenated javascript file content>*
----
application.rb
config.assets.enabled = true
config.assets.version = ''1.0''
development.rb
config.assets.compress = false
config.assets.compile = true
config.assets.debug = true
config.assets.digest = true
offending line in layout file:
<%= javascript_include_tag ''application'' %>
and the last couple of lines from the framework stacktrace:
<ruby>/ruby-1.9.2-p290/lib/ruby/1.9.1/pathname.rb:963:in `open''
/Users/christoffer/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/pathname.rb:963:in
`entries''
/Users/christoffer/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/pathname.rb:963:in
`entries'' hike (1.2.1) lib/hike/index.rb:80:in `entries'' hike
(1.2.1)
lib/hike/index.rb:129:in `match'' hike (1.2.1) lib/hike/index.rb:113:in
`block in find_in_paths'' hike (1.2.1) lib/hike/index.rb:112:in
`each'' hike
(1.2.1) lib/hike/index.rb:112:in `find_in_paths'' hike (1.2.1)
lib/hike/index.rb:63:in `block in find'' hike (1.2.1)
lib/hike/index.rb:57:in
`each'' hike (1.2.1) lib/hike/index.rb:57:in `find'' sprockets
(2.0.3)
lib/sprockets/trail.rb:74:in `resolve'' sprockets (2.0.3)
lib/sprockets/trail.rb:78:in `resolve'' sprockets (2.0.3)
lib/sprockets/trail.rb:96:in `find_asset_in_path'' sprockets (2.0.3)
lib/sprockets/base.rb:101:in `find_asset'' sprockets (2.0.3)
lib/sprockets/index.rb:48:in `find_asset'' sprockets (2.0.3)
lib/sprockets/base.rb:110:in `[]'' actionpack (3.1.1)
lib/sprockets/helpers/rails_helper.rb:141:in `digest_for'' actionpack
(3.1.1)
lib/sprockets/helpers/rails_helper.rb:154:in `rewrite_asset_path''
actionpack
(3.1.1) lib/action_view/asset_paths.rb:27:in `compute_public_path''
actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:64:in
`path_to_asset'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb:19:in
`asset_tag'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:57:in `block
in include_tag'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:57:in
`collect'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/asset_include_tag.rb:57:in
`include_tag'' actionpack (3.1.1)
lib/action_view/helpers/asset_tag_helpers/javascript_tag_helpers.rb:187:in
`javascript_include_tag'' actionpack (3.1.1)
lib/sprockets/helpers/rails_helper.rb:29:in `block (2 levels) in
javascript_include_tag''
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rubyonrails-talk/-/tvADYwUP0dgJ.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.