Skip to content

Commit

Permalink
readme tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
GBH committed May 28, 2019
1 parent 4ebc21f commit 1b8b339
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2018 Oleg Khabarov
Copyright 2018-19 Oleg Khabarov

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
9 changes: 2 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ won't render all form elements. Things like errors messages won't show up right.
You can change label generated by Rails to something else:

```erb
<%= form.text_field :value, bootstrap: {label: "Custom Label"} %>
<%= form.text_field :value, bootstrap: {label: {text: "Custom Label"}} %>
```

Expand All @@ -256,12 +257,6 @@ Custom CSS class on the label tag? Sure:
<%= form.text_field :value, bootstrap: {label: {class: "custom-label"}} %>
```

If you want just to set label text, there's a shortcut:

```erb
<%= form.text_field :value, bootstrap: {label: "Custom Label"} %>
```

#### Help Text

You may attach help text for pretty much any field type:
Expand Down Expand Up @@ -335,4 +330,4 @@ You may completely disable bootstrap and use default form builder by passing

---

Copyright 2018 Oleg Khabarov, Released under the [MIT License](LICENSE.md)
Copyright 2018-19 Oleg Khabarov, Released under the [MIT License](LICENSE.md)

0 comments on commit 1b8b339

Please sign in to comment.