Update
This commit is contained in:
parent
fe9a4b5caf
commit
1b3e7fca9a
|
@ -31,8 +31,8 @@ hello: "Hello %{name}"
|
||||||
|
|
||||||
```rb
|
```rb
|
||||||
# from the 'books/index' view
|
# from the 'books/index' view
|
||||||
t('.title')
|
t('.title'
|
||||||
```
|
``n
|
||||||
{:.light}
|
{:.light}
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
@ -159,7 +159,13 @@ validates
|
||||||
|
|
||||||
### Labels
|
### Labels
|
||||||
|
|
||||||
|
```rb
|
||||||
|
form_for @post do
|
||||||
|
f.label :body
|
||||||
```
|
```
|
||||||
|
{:.light}
|
||||||
|
|
||||||
|
```yml
|
||||||
helpers:
|
helpers:
|
||||||
# helpers.label.<model>.<field>
|
# helpers.label.<model>.<field>
|
||||||
label:
|
label:
|
||||||
|
@ -169,6 +175,11 @@ helpers:
|
||||||
|
|
||||||
### Submit
|
### Submit
|
||||||
|
|
||||||
|
```rb
|
||||||
|
form_for @post do
|
||||||
|
f.submit
|
||||||
|
```
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
helpers:
|
helpers:
|
||||||
submit:
|
submit:
|
||||||
|
|
Loading…
Reference in New Issue