I am fetching data from MongoDB as follows:
@bs = coll2.find("date" => {"$gte" => initial_date, "$lte" => Time.now.utc})
It works fine but when I render @bs, it sends empty.
render :json => @bs
If I do a @bs.each and render each one as json, it works, however, I want to send the whole @bs.
Thanks