Sandeep Gudibanda
2007-Sep-10 16:54 UTC
Displaying string that was inserted using Select statement
Hi,
While updating the patient record, i am using select statement
<%= select ''patient'', ''status'',
[[''case study'',1],
[''Critical!'',2],
[''Normal'',3] %>
and now when i am displaying the patient record, i dont want to show
using select box (as it becomes editable), instead i can display using
string. But how can i write that logic in view. 1 shud be printed as 1
and 2 as critical.
Any suggestions?
Regards,
Sandeep G
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---