Merge pull request #893 from morenoh149/master
Added a note on custom inputs
This commit is contained in:
commit
50c4ac4a8b
|
@ -521,6 +521,7 @@ And use it in your views:
|
|||
```ruby
|
||||
f.input :money, as: :currency
|
||||
```
|
||||
Note, you may have to create the `app/inputs/` directory and restart your webserver.
|
||||
|
||||
You can also redefine existing **Simple Form** inputs by creating a new class with the same name. For
|
||||
instance, if you want to wrap date/time/datetime in a div, you can do:
|
||||
|
|
Loading…
Reference in New Issue