Hi Alan,
Did you sort this out? I think one key would be to interpret what
those numbers are. What does your original list look like and what are
the ids of the elements?
DAZ
On Apr 24, 9:00 pm, "Alan Smith"
<alan0...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I am having some trouble understanding how to use my controller to
> look at whatsortable-element gives me back for anestedlist.
>
> What I get back in my session looks like:
>
{"list"=>{"0"=>{"6"=>{"id"=>"64"},
"11"=>{"id"=>"120"},
> "7"=>{"id"=>"65"},
"12"=>{"id"=>"121"},
"8"=>{"id"=>"69"},
> "13"=>{"id"=>"144"},
"9"=>{"id"=>"75"},
"id"=>"18",
"0"=>{"id"=>"32"},
> "1"=>{"id"=>"33"},
"2"=>{"id"=>"31"},
"3"=>{"id"=>"35"},
> "4"=>{"id"=>"15",
"0"=>{"id"=>"17"}},
"10"=>{"id"=>"84"},
> "5"=>{"id"=>"58"}},
"1"=>{"id"=>"50"},
"2"=>{"id"=>"125"},
> "3"=>{"id"=>"126"},
"4"=>{"id"=>"133"}}
>
> I can find lots of examples for simplelists, but am having trouble
> expanding that in my head to handlenestedlists. Can anyone point me
> to an example of what the controller code might look like?
>
> Thanks in advance,
>
> Alan
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---