:true not workin!

S

Sukeerthi Adiga

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
 
A

Andreas Kleindiek

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

Sukeerthi said:
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.mozdev.org

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top