I’m using the zurb-foundation gem, but it uses foundation 2 while foundation 3 came out today. Looking at the gem repository, there is a folder called vendor/assets which holds all of the assets (javascripts/css/images). If I download the new foundation assets and put them in the vendor/assets folder in my Rails app, will it override the gem assets?
I’m using the zurb-foundation gem, but it uses foundation 2 while foundation 3 came
Share
Any asset that you add to your assets folder will take precedence over any asset that is added from a gem – which will use the vendor folder.
So in your case, add your files to the assets folder – not the vendor one.
Notice that you will need to maintain that code, so while in the short term this will work, in the long term you may want to update the zurb-foundation gem yourself and then make a pull request.