Feature/logic out of templates

Still a few more templates to fix, WIP.
Good catch. I guess I was biased against having AR methods in the view--but we already have Category#by_access_count in there so it probably won't hurt to keep #limit.

Sent from my iPhone

> On Jun 9, 2014, at 4:35 AM, Justin Grevich <notifications@github.com> wrote:
> 
> In app/views/home/_category.html.erb:
> 
> > @@ -2,7 +2,7 @@
> >    <span class="left"><%= link_to( category.name, category_path(category.id) ) %></span>
> >    <p class="right">
> >    <ul>
> > -    <%= render :partial => 'home/article', :collection => category.articles.by_access_count.limit(3) %>
> > +    <%= render :partial => 'home/article', :collection => category.articles[1..3] %>
> Why not use by access count and use .limit(3)? Currently it's taking articles 2-4.
> 
> —
> Reply to this email directly or view it on GitHub.