edit event ruby