first step to support rails 4