I've recently had a trouble making Galleria plugin work with Rails 4 Pipeline and it took me a while to figure out how to make it work, so I wanted to share the solution in case somebody has the similar problem.
1) After downloading the plugin, put galleria-1.3.3.js
( it's the current version on the day I write it ) and galleria.classic.js
( or other style js file ) to vendor/assets/javascripts
2) Put galleria.classic.css
( or other theme stylesheet) to vendor/assets/stylesheets
3)Add //= require galleria-1.3.3
and //= require galleria.classic
to your application.js
file and *= require galleria.classic
to application.css
file
4) Asset pipeline adds fingerprints to the images and that makes it difficult to access them via usual css, so it's needed to add 'scss' to your galleria stylesheet, like this galleria.classic.css.scss
and change url(classic-map.png)
to asset_url("classic-map.png");
and the same with the second image.
5)Open galleria.classic.js
file and find there css:"galleria.classic.css"
or something like that, and change it to css: false
6) Now you just need to add Galleria.run('#galleria');
or something different for other elements in some js file` and that should work :)
PS I am a noob in Rails and might have made some foolish mistakes, but I hope this will be helpful for anybody :)