-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
"Save" not working on /features #9416
Comments
Noting some finding that may assist in solving this. When we try to edit and save in local development environment, the route seems to throwing off an exception.
It should be calling
|
Wow very much appreciated! I got drawn into an adjacent bug 😅 |
I'll check the routes.rb file! |
This line is 6 years old, so i doubt it's related! |
I really don't see much in routes.rb... |
I checked the the routes, there's no |
https://stackoverflow.com/questions/19501374/rails-4-routingerror-no-route-matches-post This might be related |
indeed. i think it probably uses a more general matcher, or is implicit since it's a resource? Line 23 in 9e66b0f
|
The broken feature was last edited |
I will look into if we had any changes in the |
Aha, i like your theory on the |
I'll try reverting that change in local and checking the generated url of the form in HTML... |
OK, current form shows let me see after reverting this form_for change... |
Hmm. Reverting looks pretty similar... let me inspect the whole form, maybe even try submitting it and inspecting the package sent... |
-<%= form_for :node, :as => :drupal_node, :url => url do |f| %>
+<%= form_for @node, :as => :drupal_node, :url => url do |f| %> This solved it :) |
|
Ohh I missed this. |
Agreed. I'm going to try triggering a validation error to see if the displayed messages still work, as that was the target of the fix. |
🎉 |
99e0157 and monitoring the tests before merging to stable and publishing! |
Thank you so much, @daemon1024 !!! |
Please describe the problem (or idea)
Please show us where to look
https://publiclab.org/features/17211
https://publiclab.org/features/11796/
and for Jeff: https://publiclab.slack.com/archives/CV7KG8MFT/p1617198609007000
What's your PublicLab.org username?
bhamster
liz
Thank you!
The text was updated successfully, but these errors were encountered: