Andrius Chamentauskas
2012-Apr-30 15:35 UTC
Rails 3.1.3 -> 3.2.3 upgrade, assets can''t be found
Hello everyone, I''m upgrading one application from Rails 3.1.3 to 3.2.3 and run into a nasty problem that none of the assets are found (everything worked great before upgrade). I''ve investigated for several hours and it seems that the root of the problem is that the order of initializers becomes wrong after initializers.tsort (in railties-3.2.3/lib/rails/ initializable.rb:54). It seems that finisher_hook initializer (which runs after_initialize, which then bootstraps sprockets by copying paths from config.assets.paths to Rails.application.assets.paths) is run before append_assets_path (which loads asset paths from all engines) and so Sprockets is bootstrapped with empty list of asset paths. Maybe anyone has any ideas where could the problem be and how to solve it? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. 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.