searching by month

Have you tried params[:created_at] instead of just [:created_at]?

Cheers
Max