-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Multiple rich text fields - ActionText #37399
Comments
This issue has been automatically marked as stale because it has not been commented on for at least three months. |
I'm having the same problem...Shame this got closed. |
@ChaseFlorom I was not able to reproduce this issue on Rails |
Experienced this today after installing action_text from a newly upgraded Rails 6 app(previously 5.2). Fixed this by manually assigning unique Ex:
I think the cause is action_text automatically assign id's to the rich text fields and uses only one id value to all rich text field it finds. Hope this helps. |
Steps to reproduce
I''m generating multiple rich text fields on a rails 6 form.
Actual behavior
Only first field is storing in the database. The remaining fields are not showing on the db at all. Can a form use multiple rich text fields?
module.rb
has_rich_text :content
has_rich_text :references
has_rich_text :footnotes
_form.html.erb
f.rich_text_area :content
f.rich_text_area :references
f.rich_text_area :footnotes
controller.rb
params.require... :content, :references, :footnotes...
System configuration
Rails 6:
Ruby 2.6.5:
The text was updated successfully, but these errors were encountered: