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

Inline Errors not showed on working with turbo #1792

Open
chmich opened this issue Oct 5, 2022 · 4 comments
Open

Inline Errors not showed on working with turbo #1792

chmich opened this issue Oct 5, 2022 · 4 comments

Comments

@chmich
Copy link

chmich commented Oct 5, 2022

Precheck

  • Do not use the issues tracker for help or support, try Stack Overflow.
  • For bugs, do a quick search and make sure the bug has not yet been reported
  • If you found a security bug, do not report it through GitHub. Please send an e-mail to heartcombo@googlegroups.com instead.
  • Finally, be nice and have fun!

Environment

  • Ruby 3.1.2
  • Rails 7.0.4
  • Simple Form 5.1.0
  • gem 'turbo-rails'

Current behavior

Inline errors not showed by working on turbo-rails
does it depend to this stackoverflow issue

Expected behavior

should be visible

thanks,
Chris

@jamesds
Copy link

jamesds commented Nov 8, 2022

I had the same issue on upgrading to Rails 7 and migrating from Turbolinks to Turbo. The solution in #1789 says that for validation errors to show, a HTTP 422 Unprocessable Entity status must be returned, e.g.

render 'new', status: :unprocessable_entity

This solved my issue, and may help you too? I can't see this documented in the README or Wiki anywhere unfortunately.

@chmich
Copy link
Author

chmich commented Nov 8, 2022

Oh, sorry, yes, @jamesds i solved it on the same way - thanks!

@MatheusRich
Copy link

Should we close this issue?

cc @carlosantoniodasilva

@chmich
Copy link
Author

chmich commented Sep 26, 2023

From my side you can close it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants