Closed gabrielshufelt closed 3 weeks ago
Description: We want to enhance the User model by adding a sex field and implementing a method to return honorifics based on the user's selected sex.
sex
Requirements:
User
honorifics
"Mr."
"Ms."
"Mx."
User.last.honorifics
Acceptance Criteria:
Description:
We want to enhance the User model by adding a
sex
field and implementing a method to return honorifics based on the user's selected sex.Requirements:
sex
field to theUser
model, with the following options:honorifics
method in theUser
model, which will return an appropriate honorific string based on the user's sex:"Mr."
"Ms."
"Mx."
User.last.honorifics
in the rails console will return the appropriate honorific for the most recently created user.Acceptance Criteria:
sex
with the options: Male, Female, Other.honorifics
method returns "Mr.", "Ms.", or "Mx." based on the user's sex.sex
field andhonorifics
method.sex
field andhonorifics
method.