Hey,
Are you sure you need such a deep structure and you cannot flatten it?
If you are, I see no problems, it should just work.
Cheers,
Yuri
On 5/9/07, Nash <nkabbara-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi,
>
> I''m about to implement a feature that requires a complex set of
> options to be sent over. This requires me to do things like:
>
> text_field "some_object", "", :name =>
"inventory_view[settings]
> [where_clause][inventory_days_symbol]"
>
> Rails parses name into the correct structure, namely:
> "some_object"=>{"name"=>"",
>
"settings"=>{"where_clause"=>{"inventory_days"=>"34"}}}
>
> What I"m worried about is whether this is an acceptable way of doing
> things. I don''t want to assume that if it works, then
it''s OK. I''m
> trying to avoid future breaks with upgrades.
>
> What do railers do to handle posts that require complex structures
> like this instead of the usual :some_key => some_hash ?
>
>
> -Nash
>
>
> >
>
--
Best regards,
Yuri Leikind
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---