Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. COWow, this seems like it might work! Unfortunately, I am now getting an error involving "with_indifferent_access" being called on the value passed. Any advice? Processing TracksController#create (for 127.0.0.1 at 2010-04-14 10:46:27) [POST] Parameters: {"track"=>{"points_attributes"=>{"lng"=>"2", "lat"=>"3"}, "distance"=>"100"}, "user_id"=>"1"} User Load (0.6ms) SELECT * FROM "users" WHERE ("users"."id" = 1) NoMethodError (undefined method `with_indifferent_access' for "2":String): app/controllers/tracks_controller.rb:47:in `create'
      singulars
    2. COIf I change your XML I can insert a single point: "curl -i -X POST -H 'Content-Type: application/xml' -d '<track><distance>1000</distance><points_attributes><point><lat>39</lat><lng>29</lng></point></points_attributes></track>' http://localhost:3000/users/1/tracks" Unfortunately, this doesn't work for 2: "curl -i -X POST -H 'Content-Type: application/xml' -d '<track><distance>1000</distance><points_attributes><point><lat>39</lat><lng>29</lng></point><point><lat>39</lat><lng>29</lng></point></points_attributes></track>' http://localhost:3000/users/1/tracks" How do I format the XML for 2?
      singulars
    3. COOkay, I think I've go it now. The following XML seems to work. <track> <distance>1000</distance> <points_attributes> <lat>39</lat><lng>29</lng> </points_attributes> <points_attributes> <lat>2</lat><lng>5</lng> </points_attributes> </track> YEAH! Thank you soo much for pointing me in the right direction.
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload