[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

:true not workin!

Sukeerthi Adiga

2/27/2008 2:40:00 PM

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= "<font color= 'green'> Rejected</font>"
else
status= "<font color= 'blue'> Expired</font>"
end

but its not workin..
help me please m tired solving this
--
Posted via http://www.ruby-....

1 Answer

akl

2/27/2008 2:45:00 PM

0

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

Sukeerthi Adiga 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= "<font color= 'green'> Rejected</font>"
else
status= "<font color= 'blue'> Expired</font>"
end
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail....

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