Small Wolf
Small Wolf

Reputation: 283

get the params from the querystring

In Rails, I have a question on how to get the multiple params ! for example: the string in 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!

Upvotes: 0

Views: 1881

Answers (1)

Eimantas
Eimantas

Reputation: 49354

Is this a trick question?

params[:emergency][:department]

Upvotes: 7

Related Questions