added rails best  practice