Init for rails