V
V
Vlad_ruby2018-10-31 19:00:43
Ruby on Rails
Vlad_ruby, 2018-10-31 19:00:43

How to make it so that when creating a new post, the date of creation of the post is always displayed in ruby ​​on rails?

Please tell me how in ruby ​​on rails to make it so that when creating a post, the date of its creation is always displayed next to it?
Thanks in advance

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Shakhunov, 2018-11-01
@inf

<%= post.created_at %>

S
shmatuan, 2018-10-31
@shmatuan

Can you be more specific?
The model has a creation date field - you should display it. If not, add and specify the date when creating when creating

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question