You should consider putting that logic away from the post model and moving it to the controller.
In the controller you could check the parameters sent by an user eg.
if params[:slaptazodis] != "1234"
If however, you're learning rails and just want to make it work with your existing solution, change from:
if :slaptazodis != "1234"
to:
if slaptazodis != "1234"
The ":" tells Rails that it should consider the characters following a symbol (almost the same as a string) just for clarification, your code is therefore almost the same as say:
if "slaptazodis" != "1234"
Which of course always renders true.