Hi there:
I was trying to figure out where to put a simple block of code to calculate the age of every "user" I have in the table "people". In the controller I get all the users from the model like this: @people = Person.find(:all) Then in the view, when I'm showing all the attributes of each user I do this: <% for p in people %> <tr> ... "age calculation and showing" ... </tr> <% end %>
Isn't this breaking the MVC theory?. Shouldn't put I this piece of code at the controller?.
Cheers, Ibon.