From 5ea4fca4f9eb21d94a8a1252b4072415bd25c677 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Mon, 27 Feb 2017 18:18:31 +0800 Subject: [PATCH] Fix avatar_helper, use main_app.user_path --- app/helpers/users_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index da1a5dc1a7..d397648611 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -56,7 +56,7 @@ def user_avatar_tag(user, version = :md, opts = {}) } if opts[:link] != false - link_to(raw(img), user_path(user), options) + link_to(raw(img), main_app.user_path(user), options) else raw img end