I'm on rails 3.2 stable branch and use the master branch of rails_admin.
When deploying via capistrano I receive the following error:
** [out :: server] rake aborted!
** [out :: server] Asset logical path has no extension: rails_admin/base/README
** [out :: server]
** [out :: server] Tasks: TOP => assets:precompile:primary
Any idea how to fix that?
Does it happen locally?
You should read the Rails documentation on Asset Pipeline if you haven't already, it's a tricky beast.
You may have a weird require in an asset somewhere?
Actually, I think it would be this problem: sstephenson/sprockets#347
Make it README.txt till sprockets gets fixed
Any idea which README is causing this?
I believe any file with no extension that would be pulled in by a sprockets require (e.g. require_tree) directive will cause it.
Renamed README to README.txt should close #1343 and #1345.
Fixes precompiling assets.
in your config.application.rb file
you can add
initializer 'setup_asset_pipeline', :group => :all do |app|
# We don't want the default of everything that isn't js or css, because it pulls too many things in
# Explicitly register the extensions we are interested in compiling
app.config.assets.precompile.push(Proc.new do |path|
'.html', '.erb', '.haml', # Templates
'.png', '.gif', '.jpg', '.jpeg', # Images
'.eot', '.otf', '.svc', '.woff', '.ttf', # Fonts