To Examples
TemperatureConverter3 Example
Directions
Create a new Rails project named TemperatureConverter3.
Create a controller named Convert with views input and display.
Source code for the views:
input.html.erb
display.html.erb
Source code for the controller:
convert_controller.rb
Source code for the style sheet:
convert.scss
In the config/routes.rb file, add a post route for the display view:
post "convert/display"
View the input view of this example with this URL:
http://localhost:3000/convert/input