Code Monkey home page Code Monkey logo

Comments (4)

kristianmandrup avatar kristianmandrup commented on June 24, 2024

As I recall, gems using vendor folder for assets need an update to work with Rails 4.1+. Please check the asset pipeline docs ;)

from rails-gallery.

mmhan avatar mmhan commented on June 24, 2024

I'm not sure what you mean by "need an update to work with Rails 4.1+". Gem update?

from rails-gallery.

kristianmandrup avatar kristianmandrup commented on June 24, 2024

http://stackoverflow.com/questions/23305570/how-to-effectively-organize-vendor-css-and-js-files-togheter-in-rails-assets

in Rails 4 they have removed vendor folder,so,assets will not server from vendor.

in that Rails.application.config.assets.paths not contains vendor,if you want you have to add the path in config/application.rb

config.assets.paths << "#{Rails.root}/vendor/assets"

Since version 4 vendor and lib directories are not included in the asset pipeline by default. If you want to then you should extend assets path or use `app/assets``

So perhaps a better solution is to move/rename vendor/assetsin rails gallery gem to app/assets and see if that works.

Just fork the repo, link to your fork from your Gemfile then experiment.

from rails-gallery.

mmhan avatar mmhan commented on June 24, 2024

Damn, I forgot to reply to your comment after getting this resolved.

from rails-gallery.

Related Issues (3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.