0

在 rails 应用程序的控制台输出中,我看到如下内容:

INFO: Started GET "/pharmacy?chart=medications&brand_name=BrandName_449&dose=6&form=Form_3&filter=phy_group"
    Processing by PharmacyController#level_one as JSON
      Parameters: {"chart"=>"medications", "brand_name"=>"BrandName_449", "dose"=>"6", "form"=>"Form_3", "filter"=>"phy_group"}
    Completed 200 OK in 73ms (Views: 0.4ms)

但如果我说它puts params.length返回我

怎么了?不应该是五个吗?

4

1 回答 1

1

params 隐式包含:controllerand :action,在输出中被省略

于 2013-06-14T14:19:22.960 回答