To Examples
class ConvertController < ApplicationController def show # Input Celsius value. input = params[:cel] @c = input.to_i # Compute Fahrenheit value. @f = 9 * @c / 5 + 32 end end