Nested Hashes


  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]

Rails parses name into the correct structure, namely:

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 ?



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.