I\'m looking for a way to format date time in find(:all) so that when I render my results in JSON, the date time will look like
\"March 20, 2011\"
instead of
Off the top of my head, you could do something like:
@posts = Post.all @posts.all.each do |x| x.date = x.date.strftime("%b %d, %Y") end @posts.to_json