cheatsheets/simple_form.md

16 lines
265 B
Markdown

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