Voting

Allow for AJAXy voting on comments and articles. Resolves #14.


![](http://zippy.gfycat.com/ImpracticalPastCardinal.gif)
If that's how you want the route to look, then `upvote` and `downvote` should be setup as `member` actions on the respective controllers.  This can be accomplished using a `Votable` controller concern that adds `upvote` and `downvote` actions, then the routes would look something like:

```ruby
resources :articles, only: [:index, :show] do
  resources :comments, only: :create

  member do
    post :upvote
    post :downvote
  end
end
```

You could also look into using [Routing Concerns](http://guides.rubyonrails.org/routing.html#routing-concerns) for great justice.