如果您正在使用RESTful资源,则可以执行以下操作:redirect_to action_name_resource_path(resource_object, param_1: 'value_1', param_2: 'value_2')or#You can also use the object_id instead of the objectredirect_to action_name_resource_path(resource_object_id, param_1: 'value_1', param_2: 'value_2')or#if its a collection action like index, you can omit the id as followsredirect_to action_name_resource_path(param_1: 'value_1', param_2: 'value_2')#An example with nested resource is as follows:redirect_to edit_user_project_path(@user, @project, param_1: 'value_1', param_2: 'value_2')