[Rails] Edit is not working properly for radio_button

2008-11-18 Thread Raji Mani
Hi, I m trying to edit contact info.. all other data other than radio button are getting reflected in edit page .. But the same works fine while creating new contact i.e it allows only one email id to be set as primary but the same not working in edit.. it allows user 2 select both radio

[Rails] can't convert String into Integer error on updating

2008-11-17 Thread Raji Mani
% form_for (:contact,:url={:controller='contact',:action = 'update',:id = @contact},:html= {:onSubmit = 'return validate()', :id = 'savecontact'} ) do -% . . . . table cellpadding=4 cellspacing=0 border=1 width=100% class=details tr th colspan=4 align=left bgcolor=#797ba8strongfont

[Rails] Re: how to retrive multiple vaules from a view for a text_field!

2008-11-12 Thread Raji Mani
Frederick Cheung wrote: On Nov 12, 5:18�am, Raji Mani [EMAIL PROTECTED] wrote: issue is how do i differentiate radio buttons with the same name.. both the radio buttons are getting selected :(.. here is the code the builders yielded by form_for and fields_for have the same name, so

[Rails] how to retrive multiple vaules from a view for a text_field!

2008-11-11 Thread Raji Mani
Hi, I have view page which takes all the information like contact's emails , phones no's etc and saves different tables. I want to save more than one email id's for a particular contact. view page is something like this.. . . Email 1 : %= select 'email', 'email_type', %w(Business Personal),

[Rails] Re: how to retrive multiple vaules from a view for a text_field!

2008-11-11 Thread Raji Mani
Frederick Cheung wrote: On Nov 11, 9:46�am, Raji Mani [EMAIL PROTECTED] wrote: Hi, I have view page which takes all the information like contact's emails , phones no's etc and saves different tables. I want to save more than one email id's for a particular contact. view page is something