rails g resource event
set validation