I am new to rails and trying to do a little refactoring (putting a partial renderer that lists titles in app/views/shared ) The renderer shows the dates along with the title
You could add a function to the model like this
def get_date(date) return created_on if date == 'created' return updated_on end