def inline_asset(name)
      assets = Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)
      assets.find_asset(name).to_s
    end
def inline_asset(name)
      assets = Rails.application.assets || ::Sprockets::Railtie.build_environment(Rails.application)
      assets.find_asset(name).to_s
    end
http://stackoverflow.com/questions/35251759/undefined-method-find-asset-for-nilnilclass/37820647#37820647