diff options
author | George Claghorn <george.claghorn@gmail.com> | 2016-12-15 01:40:22 -0500 |
---|---|---|
committer | George Claghorn <george.claghorn@gmail.com> | 2016-12-15 02:10:10 -0500 |
commit | 5b217c3a7f294a74d4680e71ef64047432b9ffc2 (patch) | |
tree | fd17fa7bb73e8bd5c8b2e7bdb4fa854b9717778d /activerecord/test/cases/migration_test.rb | |
parent | 1f0fe334f577479ad524cb990bef4454585857c0 (diff) | |
download | rails-5b217c3a7f294a74d4680e71ef64047432b9ffc2.tar.gz rails-5b217c3a7f294a74d4680e71ef64047432b9ffc2.tar.bz2 rails-5b217c3a7f294a74d4680e71ef64047432b9ffc2.zip |
Avoid invalid attribute on local forms generated by `form_with`
Fixes that the following ERB template would result in invalid HTML
output:
<%= form_with model: Post.new, local: true do |form| %>
<% end %>
Specifically, the resulting form tag would have a spurious `remote`
attribute:
<form remote="false" ...>
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
0 files changed, 0 insertions, 0 deletions