[RUBY] How to solve the problem when the value is not sent when the form is disabled in rails and sent

When I disabled some form values in js, the values were not sent and I took corrective action.

After investigating, it seems that the disable attribute is not POSTed, and in order to avoid this and POST, I added that the readonly attribute can be used.

<input placeholder="Name" type="text" name="company" readonly="readonly">

Reference article

Not sent when disabled attribute is specified in form

Recommended Posts

How to solve the problem when the value is not sent when the form is disabled in rails and sent
How to solve the problem that it is not processed normally when nesting beans in Spring Batch
How to output the value when there is an array in the array
How to write the view when Vue is introduced in Rails?
[Rails] How to solve the problem that the default image is overwritten when editing without uploading the image [Active Storage]
How to set when "The constructor Empty () is not visible" occurs in junit
How to resolve the error'ActionView :: Template :: Error (The asset "application.css" is not present in the asset pipeline.'" When precompiling Rails assets
[jOOQ] How to CASE WHEN in the WHERE / AND / OR clause
How to get boolean value with jQuery in rails simple form
How to solve the unknown error when using slf4j in Java
[Rails] [Memo] When to add = to <%%> and when not
Method definition location Summary of how to check When defined in the project and Rails / Gem
[Rails] How to temporarily save the request URL of a user who is not logged in and return to that URL after logging in
How to constrain the action of the transition destination when not logged in
[Ruby] How to prevent errors when nil is included in the operation
How to create your own annotation in Java and get the value
How to solve an Expression Problem in Java
How to check Rails commands in the terminal
When the project is not displayed in eclipse
How to redirect to http-> https when SSL is enabled in Rails × Heroku environment
What to do when rails db: seed does not reflect in the database
How to set the display time to Japan time in Rails
[Rails] How to display an image in the view
[rails devise] How to transition users who are not logged in to the login page
[Java] How to get the key and value stored in Map by iterative processing
Library not loaded when trying to upgrade the version of ruby and rails s
How to fix the problem that the upper half is cut off when using UITabBar
[Rails] How to solve the error "undefined method` visit'" when using Capybara with Rspec
How to identify the cause when GC occurs frequently and CPU usage is high
I want to solve the problem that JS is not displayed properly unless reloaded when transitioning with Turbolinks: link_to
How to perform a specific process when the back button is pressed in Android Fragment
[Rails] Search without distinction between hiragana, katakana, and kanji using the search form (accuracy is not 100%)
The story when the test folder was not created in Rails
How to set chrony when the time shifts in CentOS7
Fixed the phenomenon that vuetify built in Rails is not loaded when page transition is done
[Rails] How to define macros in Rspec and standardize processing
How to retrieve the hash value in an array in Ruby
[Rails] When the layout change of devise is not reflected
How to get the log when install4j does not start
How to run React and Rails on the same server
What to do when Rails on Docker does not reflect controller changes in the browser
How to solve the problem that line breaks in cells are amplified when outputting EXCEL using SXSSF Workbook (3.16 or older)
[Rails] How to display information stored in the database in view
[Rails] How to convert the URI of the image sent by http to https when using Twitter API
How to solve the problem that you can not pull image from docker hub with Minikube
I want to solve the N + 1 problem where the data is collated excessively and the operation becomes heavy.
[Rails] What to do when the error No database selected and Unknown database appears in db: migrate
[Rails carrier wave] How to not transition to the error screen even if the image upload is not selected
How to write when you want to keep line breaks and output while avoiding XSS in Rails
[Note] What to do if bundle install in Chapter 3 of the rails tutorial is not possible
Settings to be made when HTML or JSP is formatted in Eclipse and the layout is disappointing
Throw an exception and catch when there is no handler corresponding to the path in spring
About the solution to the problem that the log of logback is not output when the web application is stopped
What to do if the app is not created with the latest Rails version installed when rails new
[Rails / Routing] How to refer to the controller in the directory you created
[Rails] How to get the URL of the transition source and redirect
How to fix the problem that Aptana Studio does not start
[Rails] What to do if data is not registered in DB
What to do when the changes in the Servlet are not reflected
[Rails] How to introduce kaminari with Slim and change the design
I tried to understand how the rails method "redirect_to" is defined