Require railtie (and/or engine if Rails version >= 3.1). Ensure Rails is not prefixed with gem namespace.