Displaying 2 results from an estimated 2 matches for "hash_name".
Did you mean:
has_name
2006 Mar 31
6
how to access a hash within a hash in ruby?
Simple question:
I know how to access a data field in a hash by doing
hash_name[datafield_name].
But what if the datafield itself is a hash? I tried a couple of
variations but nothing seems to be working and tutorials do not go into
such details.
Is there a simple way or should I create separate instances?
-Chris
--
Posted via http://www.ruby-forum.com/.
2006 Apr 08
7
text_field and arrays
Hi,
I''m trying to do a bulk update on an array with the helper text_field.
I''m trying to create an inputfield for every object in the array, but
I''m not getting it right...
example:
class ClassA
@arrayB[]
end
HTML (code with error):
<% 0.upto(9) do |index| %>
<%= text_field ''ClassA'', ''arrayB[index]'' %>
non