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