I will introduce the simple_calendar that I introduced yesterday, as I added some decorations.
<%= month_calendar do |date| %>
<%= date.strftime("%d") %>
<% end %>
You can change the display with strftim ("% d ")
. By the way, with this description, you can display only the date.
calendar.css
.wday-0 {
color: red;
}
.wday-6 {
color: blue;
}
I think it looks a little like a calendar ...
Recommended Posts