Home

Welcome to your site! This is your homepage, which is what most visitors will see when they come to your site for the first time.

A homepage section

This is an example of a homepage section. Homepage sections can be any page other than the homepage itself, including the page that shows your latest blog posts.

About

You might be an artist who would like to introduce yourself and your work here or maybe you’re a business with a mission to describe.

Blog

Mongoid (MongoDB) has_many/belongs_to relation and wrong index being picked

Sometimes when you have a belongs_to relations, you may notice, that getting an owner object can be really slow. Even if you add index like this:

Mongoid might not catch it. Unfortunately you can’t just explain it, since this relation is returning an object not a Mongoid::Criteria. Luckily you can just hook up to …

Contact

This is a page with some basic contact information, such as an address and phone number. You might also try a plugin to add a contact form.