Using strftime in a Rails view is probably a mistake

The strftime method appears in many languages, all the way back to C. The syntax of the (mostly impenetrable) formatting arguments haven’t changed that much in years and they’re remarkably consistent across languages.Ruby’s version is comprehensively documented in the Time class.However when strftime is used in your views, there’s a high chance it will lead to confusion and inconsistency.
Using strftime in a Rails view is probably a mistake #ruby #rubydeveloper #rubyonrails https://rubyonrails.ba/single/using-strftime-in-a-rails-view-is-probably-a-mistake

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles