There, the part of the Ruby middleware used by Rails and other frameworks analyzes the parameters that you sent to the server into a nested Hash object.
If you send these parameters to the server:
person[id] = 1 person[name] = Joe Blow person[email] = joe.blow@test.com person[address][street_address] = 123 Somewhere St. person[address][city] = Chicago person[address][zip] = 12345 person[other_field][] = 1 person[other_field][] = 2 person[other_field][] = 3
They are analyzed as follows:
{ :person => { :id => "1", :name => "Joe Blow", :email => " joe.blow@test.com ", :address => { :street_address => "123 Somewhere St.", :city => "Chicago", :state => "IL", :zip => "12345" }, :other_field => [ 1, 2, 3 ] } }
I believe this is also supported by PHP. Can someone tell me what is called this agreement, where did it come from, and what other languages โโsupport it? (Perl, Python, etc.)
Adam lassek
source share