Probeer dit:
<% if @user.created_at > 5.days.ago.beginning_of_day %>
<span>New User!</span>
<% end%>
Of u kunt gebruiken:
<%= time_ago_in_words(@user.created_at) %>
Bron:https://apidock.com/rails/ActionView/Helpers/DateHelper/time_ago_in_words