我params在我的控制器中使用这样的:
class ProductsController < ApplicationController
def create
@product = Product.new(params[:aircon])
...
end
end
是params的一个属性ApplicationController吗?我猜不是,因为它没有@前缀。那么,究竟params是什么?我可以在任何自定义方法中使用它ProductsController吗?