Skip to content

Commit 324e97e

Browse files
committed
fix: ci fail due to user_path helper method doesn't exist
1 parent 3658dd5 commit 324e97e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

app/views/simple_discussion/forum_posts/_form.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
.where(forum_threads: { id: @forum_thread.id })
3232
.distinct %>
3333
<% users.each do |user| %>
34-
<button class="dropdown-item" type="button" data-name="<%= user.name %>" data-profile-link="<%= user_path(user) %>">
34+
<button class="dropdown-item" type="button" data-name="<%= user.name %>" data-profile-link="<%= user_profile_link(user) %>">
3535
<%# image_tag user.profile_picture, class: "rounded-circle", style: "width: 20px; height: 20px" %>
3636
<img class="rounded-circle mr-1" src="<%= gravatar_url_for(@forum_post.user.email, size: 24) %>" alt="avatar of user">
3737
<%= user.name %>

app/views/simple_discussion/forum_posts/_spam_report.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
<td>
3333
<div class="d-flex flex-row justify-content-between align-items-center p-2">
34-
<%= link_to spam_report.user.name, user_path(spam_report.user), class: "btn btn-outline-primary", title: t('user_profile') %>
34+
<%= link_to spam_report.user.name, user_profile_link(spam_report.user), class: "btn btn-outline-primary", title: t('user_profile') %>
3535
</div>
3636
</td>
3737
<td>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
module ApplicationHelper
2+
def eser_profile_link(user)
3+
"/users/#{user.id}"
4+
end
25
end

0 commit comments

Comments
 (0)