lib/knj/web.rb in knjrbfw-0.0.4 vs lib/knj/web.rb in knjrbfw-0.0.7

- old
+ new

@@ -863,9 +863,19 @@ def self.hiddens(hidden_arr) html = "" hidden_arr.each do |hidden_hash| + if hidden_hash[:value].is_a?(Array) + if !hidden_hash[:value][0] + hidden_hash[:value] = nil + else + key = hidden_hash[:value][1] + obj = hidden_hash[:value][0] + hidden_hash[:value] = obj[key] + end + end + html += "<input type=\"hidden\" name=\"#{hidden_hash[:name].to_s.html}\" value=\"#{hidden_hash[:value].to_s.html}\" />" end return html end \ No newline at end of file