# :true not workin!

**URL:** <https://www.ruby-forum.com/t/true-not-workin/130351>\
**Category:** Ruby\
**Created:** [February 27, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/true-not-workin/130351 "2008-02-27T15:39:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sukeerthiadiga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Post date:** [February 27, 2008, 3:39pm UTC](https://www.ruby-forum.com/t/true-not-workin/130351/1 "2008-02-27T15:39:55Z")

</div>

before reinstallin ubuntu…  
while checking condition for enum column i used :ture if it was (‘true’,  
‘false’)  
but as my system got formated…i installed ruby 1.8.6 and rails 1.1.6  
newly  
but now where all i user :true in condition its not workin…:0(  
can anyone help me please…

i have used like this  
if isa\_registration.user\_access!= :true  
status= " Rejected"  
else  
status= " Expired"  
end

but its not workin…  
help me please m tired solving this

---

<div class="post-metadata">

**Author:** ![sukeerthiadiga](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/3ab097/32.png) [@sukeerthiadiga](https://www.ruby-forum.com/u/sukeerthiadiga)\
**Post date:** [February 27, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/true-not-workin/130351/2 "2008-02-27T15:50:45Z")

</div>

-----BEGIN PGP SIGNED MESSAGE-----  
Hash: SHA1

Sukeerthi A. schrieb:

> ```
> if isa_registration.user_access!= :true
> status= "<font color= 'green'> Rejected</font>"
> else
> status= "<font color= 'blue'> Expired</font>"
> end
> 
> ```

i think the colon is the Problem:  
if isa\_registration.user\_access!= true  
status= “ Rejected”  
else  
status= “ Expired”  
end  
-----BEGIN PGP SIGNATURE-----  
Version: GnuPG v1.4.6 (GNU/Linux)  
Comment: Using GnuPG with Mozilla - [http://enigmail.mozdev.org](http://enigmail.mozdev.org)

iD8DBQFHxXeDW5GYaw3DxvwRAgGeAKDi/2ajPI/dO3UypmFV8ljsMRF1hACgwOYA  
gsLKh+ycPDGTwsbD9lVO0DI=  
=qYir  
-----END PGP SIGNATURE-----
