how to sum of columns in rails
i have 6 columns i want to sum of that columns data and display in view page.
t.integer :basic
t.integer :da
t.integer :hra
t.integer :conveyance
t.integer :spical_allowance
t.integer :bonus
example
basic: 11124
da: 300
hra: 36
conveyance: 96
spical_allowance: 100
total value = 11656
in view i am displaying all data
<%@users.salaries.each do |s|%>
<%=s.basic%>
<%=s.da%>
<%=s.hra%>
<%=s.conveyance%>
<%=s.spical_allowance%>
<%=s.bonus%>
<%end%>
but i am get confused to display total value data in view page pls help me