diff options
author | Joe Sak <joe@joesak.com> | 2011-02-16 01:17:05 -0600 |
---|---|---|
committer | Joe Sak <joe@joesak.com> | 2011-02-16 01:17:05 -0600 |
commit | 6f9de45019b8cd6c589338cffdffcea1e0e40ed7 (patch) | |
tree | dcdba4754f8c1dd20b02c8c877f7ddf12f0a0c55 /app | |
parent | 5bf1926ec7d09e9032e51a2f776f81101cb0e286 (diff) | |
download | refinerycms-blog-6f9de45019b8cd6c589338cffdffcea1e0e40ed7.tar.gz refinerycms-blog-6f9de45019b8cd6c589338cffdffcea1e0e40ed7.tar.bz2 refinerycms-blog-6f9de45019b8cd6c589338cffdffcea1e0e40ed7.zip |
Closes GH-34. Pagination was already in the public controller, the index view template "just" needed will_paginate
Should probably add basic CSS style or make it say older / newer? Open to suggestions
Diffstat (limited to 'app')
-rw-r--r-- | app/views/blog/posts/index.html.erb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/blog/posts/index.html.erb b/app/views/blog/posts/index.html.erb index a2e428a..08e3578 100644 --- a/app/views/blog/posts/index.html.erb +++ b/app/views/blog/posts/index.html.erb @@ -4,6 +4,7 @@ <% if @blog_posts.any? %> <section id="blog_posts"> <%= render :partial => "/blog/shared/post", :collection => @blog_posts %> + <%= will_paginate @blog_posts %> </section> <% else %> <p><%= t('.no_blog_articles_yet') %></p> |