Fing weird error by downgrading to rails 4.0