search for: t_4

Displaying 1 result from an estimated 1 matches for "t_4".

Did you mean: t4
2013 Mar 21
0
how to remove changed_attributes from yaml response
...cessor dynamically in controller. And am sending the data object to display in Yaml format. I am getting the response along with changed_attributes but I don''t want changed_attributes details in my response. build Model code class Test < ActiveRecord::Base attr_accessor: t_1, t_2, t_3, t_4 end In Test Controller code: #build is controller object tb = ["[5, 30.14]","[0, 12.0]","[1, 11.0]","[2, 11.0]"] $i=1 while $i <= tb.length do $tbVal = "t_#{$i}" build["#{$tbVal}"] = tb[$i-1] $i += 1 wants.yaml { render :text => t...