Add debugging for rails