Converting Datetime in view

I have some views that show dates and have done the conversion in the
.rhtml
file itself. Does it make more sense to do that in the model file
perhaps ?

TIA
Stuart

stuart fellowes wrote:

I have some views that show dates and have done the conversion in the
.rhtml
file itself. Does it make more sense to do that in the model file
perhaps ?

TIA
Stuart

Stuart,
I would say to leave them in the views. This helps when you want to
display the date/time in different ways. Plus i think it’s just easier.

JOn

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs