I'm guessing I need to create a helper method to achieve this, but essentially I'd like to use distance_of_time_in_words_to_now
to display the time between a datetime
field's data and now, but in more specific words. For instance, if it's 3 days it should say "in 3 days". If it's tomorrow, it should say "tomorrow" (without the word "in").
All I currently have is:
<%= distance_of_time_in_words_to_now(interaction.action_date) %>
Any points in the right direction here? Thanks!