!!!5 %html %head %title Shortlink App %link{ rel:"stylesheet", href:"/styles/main.css" } %body .container %h1 shortlink app %form{ method:"post" } %input{ type:"text", value:"#{params[:url]}", name:"url", id:"url" } %input{ type:"submit", value:"shorten", id:"submit" } .clear -if @shortcode .result Your shortened URL is: %a{ href:"http://jinfield.com/#{@shortcode}" } href:"http://jinfield.com/#{@shortcode}"