Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Linking to anchor tags with will_paginate in Rails 3.0.10
- <%= will_paginate @posts, :params => {:anchor => i} %>
- <%= link_to(i, subject_topic_path(@subject, @topic, :anchor => i), {:name => i}) %>
- <%= link_to "Last Post Created:", subject_topic_path(s.subject, s, :anchor => s.posts.count)%>
- <%= will_paginate @posts %>
- <%= link_to "Last Post Created:", subject_topic_path(s.subject, s, :page => x, :anchor => s.posts.count)%>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement