开发者

get the params from the querystring

开发者 https://www.devze.com 2023-01-01 20:30 出处:网络
In Rails, I have a question on how to get the multiple params ! for example: the string in开发者_C百科 log like this

In Rails, I have a question on how to get the multiple params ! for example: the string in开发者_C百科 log like this

 Processing ConfigurationsController#emergency_config (for 192.168.1.124 at 2010-05-31 11:45:53) [POST]
  Parameters: {"authenticity_token"=>"I3GPKyrjmDRLkMIxFVS/47mgEI4ETO/+YW+R8R5Q2GM=", "tid"=>"1", "emergency"=>{"department"=>["1", "2", "3", "4", "5", "6", "7", "8"]}}

so,how can i get the department values from it? who can tell me the answer? thank you!


Is this a trick question?

params[:emergency][:department]
0

精彩评论

暂无评论...
验证码 换一张
取 消