I have the view:
<% form_tag '/' do %> <%= number_field_tag(:number_one) %> <%= number_field_tag(:number_two) %> <%= submit_tag 'Calculate' %> <% end %> <%= @number %>
and the controller:
def add numberone = params[:number_one].to_f numbertwo = params[:number_two].to_f @number = numberone + numbertwo end
Point me in the right direction?