This commit is contained in:
Rico Sta. Cruz 2015-04-18 03:36:37 +08:00
parent 99660143ab
commit cdb6135103
1 changed files with 4 additions and 0 deletions

View File

@ -3,10 +3,14 @@ title: SimpleForm
layout: default layout: default
--- ---
```ruby
<%= f.input :email, required: false, autofocus: true %> <%= f.input :email, required: false, autofocus: true %>
<%= f.input :password, required: false %> <%= f.input :password, required: false %>
<%= f.input :remember_me, as: :boolean %> <%= f.input :remember_me, as: :boolean %>
<%= f.button :submit, "Sign in" %> <%= f.button :submit, "Sign in" %>
```
```ruby
simple_form_for @x, simple_form_for @x,
wrapper: :small wrapper: :small
```