Updated controller generator in order to actually point to the correct actions when a restful controller is used