rails loop trhough fields find true code example
Example: iterate through values of an object rails
@work_profile.attributes.each do |attr_name, attr_value|
...
end
@work_profile.attributes.each do |attr_name, attr_value|
...
end