95-733 Internet Technologies
61
Modify The Controller
class HomeController < ApplicationController
   def the_form
   end
   def result
     @unpop = params[:unpop].to_i
     @caramel = params[:caramel].to_i
     @caramelnut = params[:caramelnut].to_i
     @toffeynut = params[:toffeynut].to_i
     @name = params[:name]
     @street = params[:street]
     @city = params[:city]
     puts @city
     @payment = params[:payment]
After these
computations pass the
results to the view
(result.rhtml).