adding rails flashes support