How would you make this ternary?
if @user.skill.present?
@skill = @user.skill
else
@skill = Skill.new
end
@skill = @user.skill || Skill.new
If the value of @user.skill if nil, it will asign the next value( Skill.new) to @skill.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With