rails params[]可以直接复制修改
rails change value of parameter in controller
@theparam => (params[:valueoftheparam]) @theparam => "3"
You have to modify the value directly, the instance variable does not point to the param, it just clones its value
params[:valueoftheparam] = 3
阅读量: 624
发布于:
修改于:
发布于:
修改于: