Skip to content

Bugfix for Spree 3.7 on Rails 5#64

Open
johndavid400 wants to merge 4 commits into
spree-contrib:masterfrom
johndavid400:master
Open

Bugfix for Spree 3.7 on Rails 5#64
johndavid400 wants to merge 4 commits into
spree-contrib:masterfrom
johndavid400:master

Conversation

@johndavid400

@johndavid400 johndavid400 commented May 28, 2019

Copy link
Copy Markdown

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