I have this link in view/users/show:
<%= link_to "Photos (#{@user.photos.count})", user_path(@user), id: "photo_link", remote: true %>
Now when I click the above link I want to change [1..6] to [1..-1] without rerender in view/users/show:
<section id="photo_galery">
<% unless @user.photos[0].nil? %>
<% for photo in @user.photos[1..6] %>
<%= link_to image_tag(photo.photo.url(:subprofile_thumbnail), id: "subpics"), photo.photo.url(:original), id: "subprofile_photos", class: "fancybox", rel: "gallery01" %>
<% end %>
<% end %>
</section>
How can I accomplish this? Thanks!