this still has a ] at the end.

Should be:

Time t: @posts.ensure_index(:subject => Mongo::ASCENDING) -- calls create_index and