Checking in rails 4 engine