I have got the rails autocomplete plugin working fine, all works very well, but in my form I have this <%= text_field_with_auto_complete :memberid, :description, {:size => 15} %> So when I make a new item I enter a memberid, and it saves it to the database, no problems. But when I want to edit this item the memberid field is blank, so I can''t see what the memberid is. Is there a way I can have the text appear in the filed, and so I can change it using autocomplete, like with a standard text_field. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Sep 16, 6:34 am, Andrew Doades <a...-UVRRe/+0hzLQXOPxS62xeg@public.gmane.org> wrote:> I have got the rails autocomplete plugin working fine, all works very > well, but in my form I have this > > <%= text_field_with_auto_complete :memberid, :description, {:size => 15} %> > > So when I make a new item I enter a memberid, and it saves it to the > database, no problems. > But when I want to edit this item the memberid field is blank, so I > can''t see what the memberid is. > > Is there a way I can have the text appear in the filed, and so I can > change it using autocomplete, like with a standard text_field. > > AndrewAre you sure it''s memberid and not member_id? --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Erol Fornoles wrote:> On Sep 16, 6:34 am, Andrew Doades <a...-UVRRe/+0hzLQXOPxS62xeg@public.gmane.org> wrote: > >> I have got the rails autocomplete plugin working fine, all works very >> well, but in my form I have this >> >> <%= text_field_with_auto_complete :memberid, :description, {:size => 15} %> >> >> So when I make a new item I enter a memberid, and it saves it to the >> database, no problems. >> But when I want to edit this item the memberid field is blank, so I >> can''t see what the memberid is. >> >> Is there a way I can have the text appear in the filed, and so I can >> change it using autocomplete, like with a standard text_field. >> >> Andrew >> > > Are you sure it''s memberid and not member_id? >Yes, does this mean that I should get the memberid appear in the field when I edit an item. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---