I'm starting with Rails.
I have a view that receives information from the database and through methods of a model make several calculations.
For example:
<% @profundidade = 0.5 %>
<% @prnt = 90 %>
<% @analises.each do |analise| %>
<tr>
<td><%= valor_duascasas(analise.nctotalcomarea * @profundidade * @prnt) %></td>
</tr>
<% end %>
I want to create a form that changes this value of @profundidade
and @prnt
.