O'Reilly logo

Learning Sinatra by Manoj Sehrawat, Sudeep Agarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing signup.haml

Before anyone can use this application, a user must be created. A signup page would have the form to create a user. The code would be as follows:

.col-md-4.col-md-offset-4 .has-below .has-below .has-below .has-below .has-below .panel.panel-primary .panel-heading %h3.panel-title Signup .panel-body %form.form-horizontal{name: "signup", method: "post", action: url("/signup")} .form-group %label.control-label.col-md-3{for: "name"} Username .col-md-8 %input.form-control{type: "text", name: "name"} .form-group %label.control-label.col-md-3{for: "password"} Password .col-md-8 %input.form-control{type: "password", name: "password"} .form-group .col-md-2.col-md-offset-3 %button.btn.btn-sm.btn-primary{type: "submit"} %i.glyphicon.glyphicon-ok ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required