Make form_with generate ID attributes
Even if we don't use form_with, it makes sense to configure it to behave the same way form_for does. This is the default option in Rails 5.2 applications. IMHO it should have been the default option for Rails 5.1 too, since generally form inputs need an ID so they can easily be associated with a label.
This commit is contained in:
@@ -35,4 +35,4 @@
|
||||
# Rails.application.config.active_support.use_sha1_digests = true
|
||||
|
||||
# Make `form_with` generate id attributes for any generated HTML tags.
|
||||
# Rails.application.config.action_view.form_with_generates_ids = true
|
||||
Rails.application.config.action_view.form_with_generates_ids = true
|
||||
|
||||
Reference in New Issue
Block a user