Value check of returned symbol

Hej there

how do I check the returned symbols of my create action for a specific
value? As i can easily use all the validates_* functions, I wonder how
I can check for example that my :name == "ruby" (apparently doesn't
work because it's a symbol)?? Or is that not done in the model but
through a .rjs helper?

Thanks alot,
mowsen