Marriage works the same way it does in the other Sims games — build the relationship first.
Get your two Sims into a romantic mood, then use the Ask interaction, and once the relationship is strong enough the Propose Marriage or Ask to Marry option appears.
If it isn't showing up, keep flirting; the option only unlocks above a certain relationship level.