Ruby on Rails
Friday, February 14, 2020
Fugee,
Replace:
"remote: false" with "local: true" and tell me if that works for you.
Source: I wrote the docs on form_with.
-Schwad
Sent from my iPhone
--
On Friday, February 14, 2020 at 12:04:55 PM UTC-5, Walter Lee Davis wrote:Is your form set to the default of an Ajax submission, or did you add the configuration flag to the form_with method call that makes it actually redirect? If this was a redirect, the header would be 301, not 200.WalterOn Feb 14, 2020, at 9:59 AM, fugee ohu <fuge...@gmail.com> wrote:--This is a redirect from my log, but page doesn't change I'm still on the same page containing the form I submitted127.0.0.1 - - [14/Feb/2020:11:55:46 EST] "GET /artists/72/press_releases HTTP/1.1" 200 2542http://localhost:3000/artists/72/tours/1 -> /artists/72/press_releases
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonra...@googlegroups.com .
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ .be527a35-e686-4968-8849- ca05ecfc2491%40googlegroups. com Well I hope you're still with me on this cause I solved it and I don't have anyone else to tell For some reason I had commented out `gem turbolinks` in my Gemfile I'm upgrading all my apps to rails 6 and really to webpacker I remember reading somewhere the new way of doing things is to not use turbolinks I don't remember where
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2aab187e-810f-4122-8318-fd6ced48d405%40googlegroups.com.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment