Add and use the set_<resource> and <resource>_params methods in controllers