how do I get name of the month in ruby on Rails?

后端 未结 6 946
眼角桃花
眼角桃花 2021-02-05 00:12

so i create in my view:

<%=date=Date.today%>

How do i get the name of the month out of the date? I was trying to do sth like



        
6条回答
  •  不知归路
    2021-02-05 00:33

    this should help you https://www.shortcutfoo.com/app/dojos/ruby-dates/cheatsheet

    Date::MONTHNAMES
    Date::DAYNAMES
    

提交回复
热议问题