# Value check of returned symbol

**URL:** <https://www.ruby-forum.com/t/value-check-of-returned-symbol/144404>\
**Category:** Rails\
**Created:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144404 "2008-07-29T12:39:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [July 29, 2008, 12:39pm UTC](https://www.ruby-forum.com/t/value-check-of-returned-symbol/144404/1 "2008-07-29T12:39:55Z")

</div>

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
