rails 4 integration