You are getting a hash in instance variable, loop through it and display the values accordingly after accessing.
@hash_var.each do |key,val|
"#{key}=#{val}"
end
your current @instock_working_type is hash which is displayed on browser, it's a hash which has been grouped using the criteria as key. replace @hash_var with @instock_working_type and try