Skip to content

Commit

Permalink
Fixes redirect_to to include string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmick007 authored Oct 4, 2019
1 parent 4315bf1 commit 08662bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ProductController < ActionController::Base
#Backend
uuid = create_product

redirect_to "/product/compress(uuid)"
redirect_to "/product/#{compress(uuid)}"
end

def index
Expand Down

0 comments on commit 08662bc

Please sign in to comment.