[RUBY] About form. ○○ of form_with

About form. ○○ of form_with

There was something I didn't understand about form.〇〇 of form.with, so I will summarize it as a memorandum.

form.text_field

python


<%= form.text_field :title %>

An input field with a width of 20 characters is set.

form.text_area

python


<%= form.text_area :content %>

40x20 input field is set

form.email_filed

<%= form.email.field :email %>

If @ is not included in the posted content, it will not be considered as an email address and an error will occur. Be careful when testing!

There are various other things, but this time I got an error during the test in the input field of the email, so I summarized it as a memorandum.

Recommended Posts

About form. ○○ of form_with
Form part attributes of form_with
About ruby ​​form
[Meaning of model: of form_with]
About disconnect () of HttpURLConnection
About selection of OpenJDK
About DI of Spring ①
About DI of Spring ②
About redirect_to in form_with
About @Accessors of Lombok
About the handling of Null
About an instance of java
About simple operation of Docker
About the description of Docker-compose.yml
[Form_with] Let's unify form with form_with.
About size comparison of compareTo
About partial match of selector
About the behavior of ruby Hash # ==
About fastqc of Biocontainers and Java
About Lambda, Stream, LocalDate of Java8
About error handling of comment function
[Rails] About implementation of like function
About binding of Spring AOP Annotation
About the role of the initialize method
[Rails] About helper method form_with [Basic]
About removeAll and retainAll of ArrayList
Think about the 7 rules of Optional
About =
About image upload of jsp (servlet)
About Disk Cache of Glide 4 series
[Ruby] Review about nesting of each
Explanation about Array object of Ruby
Summary about the introduction of Device
About the log level of java.util.logging.Logger
[Rails] About the error when displaying the screen due to the autofocus of the form
About the version of Docker's Node.js image
Summary of stumbling blocks related to form_with
[Rails 6.0] About batch saving of multiple records
About the operation of next () and nextLine ()
About the initial display of Spring Framework
[Form with two arguments] rails, form_for / form_with arguments
About the error message Invalid redeclaration of'***'
[Java beginner] About initialization of multidimensional array
[Rails] About local: true described in form_with
[Basic knowledge of Java] About type conversion
About the treatment of BigDecimal (with reflection)
About the number of threads of Completable Future
About the mechanism of the Web and HTTP