I am having trouble integrating Galleria with my rails application. Here is the deal:
These are the locations of my files:
/root/rails_project/sample_app/app/assets/stylesheets/galleria.classic.css.scss
/root/rails_project/sample_app/app/assets/javascript/galleria-1.2.7.min.js
/root/rails_project/sample_app/app/assets/javascript/galleria-1.2.7.min.js
/root/rails_project/sample_app/app/assets/javascript/galleria.classic.js
/root/rails_project/sample_app/app/assets/javascript/classic-loader.gif
/root/rails_project/sample_app/app/assets/javascript/classic-map.png
In my application.css, I have added this line :
*= require galleria.classic
In my application.js, I have added this line :
//= require galleria-1.2.7
//= require galleria.classic
Finally, this happens to be my view file:
<h1>Displaying Photos</h1>
<script src="/root/rails_project/sample_app/app/assets/javascript/galleria-1.2.7.min.js"></script>
<div id="abc">
<% @pictures.each do |picture| %>
<% if (picture.tag).include? @tag %>
<ol class="microposts">
<li id="<%= picture.id %>">
<span class="content">
<%= image_tag picture.photo.url(:medium) %>
</span>
</li>
</ol>
<% end %>
<% end %>
</div>
<script>
Galleria.loadTheme('/root/rails_project/sample_app/app/assets/javascript/galleria.classic.min.js');
Galleria.run('#abc');
</script>
When I refresh my page, none of the images are displayed. On top of that I get the following error message:
Fatal error: Theme at /root/rails_project/sample_app/app/assets/javascript/galleria.classic.min.js could not load, check theme path.
Please help me out with where exactly to put my files.
Thanks in advance!