Create a model named QuoteInfo that has fields quote_number (integer),
quote (string), person (string), birth_date (date), death_date (date),
is_living (boolean), image_name (string).
You may find this controller code useful:
if @c.is_living == true
@years_lived =
"Years lived: #{@c.birth_date.day}/#{@c.birth_date.mon}/#{@c.birth_date.year}" +
" to #{@c.death_date.day}/#{@c.death_date.mon}/#{@c.death_date.year}."
else
@years_lived =
"Years lived: #{@c.birth_date.day}/#{@c.birth_date.mon}/#{@c.birth_date.year}" +
" to Present."
end