Instead of checking education.nil? for each assignment why not define it like following?

-# Though default assignment is not required by Ruby but just for readability purpose I have initialized it with nil values.If omitted then 
-# also once a variable is assigned a value it is immediately available for use elsewhere.

    - school = nil
    - study_field = nil
    - degree = nil
    - from_date = nil
    - to_date = nil

    - unless education.nil?
      - school = education.school
      - study_field = education.study_field
      - degree = education.degree
      - from_date = education.from_date
      - to_date = education.to_date

Note I have not prefixed the variables using "education_".The reason being this partial explicitly contains fields for Education so it is indicated from the partial name itself.Secondly there are no other model attributes involved in this file which should require a distinguished name for each model's attributes.