galleriffic not working right
Guys, I'm trying to work with galleriffic and rails 3, but it's not working correctly.It only makes the right effect with the thumbs, but with the main image it not works. When I click in the "next photo" button, the main image remains the same. I don't know what is going wrong, so here it is the code of gallery_detail.html开发者_如何学运维.erb:
Update: sorry, I putted the wrong code. here it is the right one: https://gist.github.com/909708
I think if you look at your actual outputted html it would help. It looks like you are not correctly starting and ending your <li>
tags. Specifically this block of code:
<ul class="thumbs noscript">
<% @gallery_photos.each do |g| %>
<% if g.geometry == 'vertical' %>
<li> <img src = "<%= g.photo.url("small") %>" style="height:65px;"/>
<% else %>
<img src="<%= g.photo.url("small") %>" style="height:65px; width:80px;"/></li></a>
<% end %>
<% end %>
</li>
</ul>
What's up with the ending </li>
, and that stray </a>
? Also, you'll notice that li
's aren't created in each circumstance. And I think that these are supposed to be links (a
's) to something. I'd definitely start there; I think the problem is most likely in this block of code.
精彩评论