search for: smth2

Displaying 2 results from an estimated 2 matches for "smth2".

Did you mean: smth
2006 Jun 05
2
Html tag
I have Html tag <select>: <select name=''tag''> <OPTION value =''smth1'' > smth1 <OPTION value =''smth2'' > smth2 </select> and my question is: how to obtain selected value by using ruby or rails? -- Posted via http://www.ruby-forum.com/.
2007 Oct 19
1
Block iteration issues
...I just don''t seem to grasp how to change @data.set1_smth into @ data.set2_smth etc. when iterating the block. i = 1 @collection.elements.each do |item| @data.set1_smth = item.elements["smth"] # obviously @ data.set1_smth should be somehow different @data.set1_smth2 = item.elements["smth2"] @data.set1_smth3 = item.elements["smth3"] i += 1 end Can anybody help? I tried @data.send("set" + i + "_smth") but that didn''t seem to work. Thanks in advance. Radek --~--~---------~--~----~------------~---...