I would like to have it so that a person can click on a link in a form in order to edit its value. So they click and in place of the link is a textfield. I know about in_place_edit_field but I also need to have it so when a person wants to change their ''State'', for example, a select box appears. Here is what I have in my view: <div id = "contact_first_name"> <%= link_to_remote ''(Edit)'', :update => ''contact_frist_name'', :url => { :action => ''add_contact_first'', :id => @user.id } %> </div> and in my controller I have: def add_contact_first render :text => ''<input type="text" />'' end It is very simple, something that I have done many times before, but for whatever reason, this time it does absolutly nothing. What am I missing? Thanks, -S -- 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 -~----------~----~----~----~------~----~------~--~---
On 4 Oct 2007, at 16:54, Shandy Nantz wrote:> > It is very simple, something that I have done many times before, > but for > whatever reason, this time it does absolutly nothing. What am I > missing? > Thanks, >You typoed the div to update : contact_frist_name>--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 4 Oct 2007, at 16:54, Shandy Nantz wrote: > >> >> It is very simple, something that I have done many times before, >> but for >> whatever reason, this time it does absolutly nothing. What am I >> missing? >> Thanks, >> > You typoed the div to update : contact_frist_nameWhat the fahell! Do you know how long I looked at that. I need a vacation, lol. Thanks Frederick. -- 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 -~----------~----~----~----~------~----~------~--~---