title: Rails 4 query sorting by month and year
body: <p>I am having trouble with the best way to do this but essentially I have a blog where I want to show an archive of the month and year of all the published blogs.  Clicking a link "May 2012" will bring you to all the blogs written in between that month on the same year (for example: May 5th 2012, May 20th 2012...).  Is there a way to get all the records within the same month of the same year just using created_at and passing params of the numerical month and year?  Is there a better way to do this overall.</p>