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

阅读量: 458
发布于:
修改于: