update rails g resource