ruby - Rails 3.2.8 - not loading assets (development) -
i have searched around , can't rectify situation based on responses other similar questions. seem have broken asset pipeline somehow can't seem figure out how.
none of assets being loaded @ all; rails seems ignoring manifest files. when inspect page in firebug, 'non-compiled' text inside manifest files (both js , css) being displayed - if asset pipeline wasn't enabled.
i deleted contents of public/assets since adding new file manifest seemed start behavior.
current configuration:
environments/development.rb
# not compress assets config.assets.compress = false # expands lines load assets config.assets.debug = true
application.rb
# enable asset pipeline config.assets.enabled = true config.assets.manifest = config.root # add assets precompiling config.assets.precompile += ['admin.js', 'admin.css'] # version of assets, change if want expire assets config.assets.version = '1.0'
the issue caused using incompatible version of ruby. using version 2.1.2 lead unusual behavior sprockets gem (which powers asset pipeline). fixed downgrading ruby 1.9.3. haven't done experimentation fear of breaking again maybe has been addressed in later versions of sprockets. using sprockets 2.1.3.
see: rails 3.2.8 application.js , application.css not working expcted
Comments
Post a Comment