OSDN Git Service
(root)
/
twpd
/
master.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Regular updates
[twpd/master.git]
/
simple_form.md
1
---
2
title: SimpleForm
3
layout: 2017/sheet
4
tags: [WIP]
5
---
6
7
### Inputs
8
9
```ruby
10
<%= f.input :email, required: false, autofocus: true %>
11
<%= f.input :password, required: false %>
12
<%= f.input :remember_me, as: :boolean %>
13
<%= f.button :submit, "Sign in" %>
14
```
15
16
### Adding a wrapper
17
18
```ruby
19
simple_form_for @x, wrapper: :small
20
```