Prova questo:
<% if @user.created_at > 5.days.ago.beginning_of_day %>
<span>New User!</span>
<% end%>
Oppure puoi usare:
<%= time_ago_in_words(@user.created_at) %>
Fonte:https://apidock.com/rails/ActionView/Helpers/DateHelper/time_ago_in_words