Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes broken monkey patch of #form_with #922

Merged
merged 1 commit into from
Jun 24, 2018

Conversation

alpaca-tc
Copy link
Contributor

@alpaca-tc alpaca-tc commented May 30, 2018

In rails 5.1, 5.2 provide #form_with method for view.
Unfortunately, the documented code doesn't work because current ransack's monkey patch is broken.

http://api.rubyonrails.org/v5.2/classes/ActionView/Helpers/FormHelper.html#method-i-form_with
form_with model: Cat.new do |form|
  form.text_field :cats_dont_have_gills
  form.text_field :but_in_forms_they_can
end

@scarroll32 scarroll32 merged commit 1d1c64b into activerecord-hackery:master Jun 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants