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

Bugfix for Spree 3.7 on Rails 5 #64

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

johndavid400
Copy link

@johndavid400 johndavid400 commented May 28, 2019

When creating a comment on Spree 3.7.0 and Rails 5.2.3, you will receive a :back method not found error from the location_after_save method in the admin/comments_controller.rb because :back was deprecated in Rails 5.

Changing the :back method to a more universal way of getting back to the last page (request.referrer) cleared up the issue. This should also work for previous versions of Rails before the :back method was deprecated.

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.

1 participant