Thanks, Colin.

I don't understand why yet, but this seems to get the value in the
nested table.

---------------------------------
params[:transport][:transports_transits_attributes].each do |attr|
  $stderr.puts "DEBUG: city = '#{attr[1][:city]}'"
end
---------------------------------

I don't know why it's attr[1]...  The params looks like this:

---------------------------------
{
 "transport"=>{
 "from_location"=>"",
 "from_country"=>"1",
 "transports_transits_attributes"=>{"1246576128669"=>
{"city"=>"seattle",
 "country"=>"1"},
 "0"=>{"city"=>"portland",
 "country"=>"1"}},
 "departure_time"=>"",
 "to_location"=>"",
 "departure_date"=>"",
 "to_country"=>"1",
 "arrival_time"=>"",
 "arrival_date"=>""}}
---------------------------------

Thanks for pointing me to the ruby-debug.  I'll get the gem and try it
out.  I'm relatively new to ruby and RoR, so still feeling my way
through more or less.

I'm still searching for alternate way.. if anyone can help with the
problem I mentioned in the 2:22 pm post (two posts above this one),
I'd really appreciate it!

Thanks
Kumi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to