Commit 6cd96b12 authored by Chrysanthi Lagodimou's avatar Chrysanthi Lagodimou
Browse files

def full name

parent 8eddd459
......@@ -28,4 +28,8 @@ class Volunteer < ApplicationRecord
def self.human_boolean(boolean)
boolean ? I18n.t('simple_form.yes') : I18n.t('simple_form.no')
end
def self.full_name(volunteer)
"#{volunteer.first_name}, #{volunteer.last_name}"
end
end
.row
.col-xs-12
h1
= @volunteer.first_name
| ,
= @volunteer.last_name
h1= Volunteer.full_name(@volunteer)
.row
.col-xs-12
.table-responsive
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment