| Start |
|---|
| Creating a search form To create a search form, enter the following code
|
Helpers for form elements CheckboxesThis will generate the following html Radio ButtonsThis generates the following HTML Text AreaTo create a larger text box, it is recommended to use the This will create the following HTML Number FieldThis will create an To specify a range of values, we can use the Password FieldSometimes you want the characters typed by the user to be masked. This will generate an Email FieldThis will create an Telephone FieldThis will create an Date Helpers |
| Dropdown Standard example: @models = Model.all select_tag "models", options_from_collection_for_select(@models, "id", "name"), {} This will generate the following HTML: David The last argument are options, which accepts the following: { multiple: false, disabled: false, include_blank: false, prompt: false } More examples can be found: http://apidock.com/rails/ActionView/Helpers/FormTagHelper/select_tag (opens new window) |
| Create a form You can create a form using the This creates the following HTML This form tag has created a The second input field, named Remarks
|
Read Article
https://develop.horje.com/learn/1434/reference