# Link\_to\_remote

**URL:** <https://www.ruby-forum.com/t/link-to-remote/116347>\
**Category:** Rails\
**Created:** [October 4, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/link-to-remote/116347 "2007-10-04T17:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [October 4, 2007, 5:54pm UTC](https://www.ruby-forum.com/t/link-to-remote/116347/1 "2007-10-04T17:54:33Z")

</div>

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:

 \<%= link\_to\_remote '(Edit)', :update =\> 'contact\_frist\_name', :url =\> { :action =\> 'add\_contact\_first', :id =\> @user.id } %\> 

and in my controller I have:

def add\_contact\_first  
render :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

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [October 4, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/link-to-remote/116347/2 "2007-10-04T17:58:14Z")

</div>

On 4 Oct 2007, at 16:54, Shandy N. 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

---

<div class="post-metadata">

**Author:** ![snantz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/c2a13f/32.png) [@snantz](https://www.ruby-forum.com/u/snantz)\
**Post date:** [October 4, 2007, 6:06pm UTC](https://www.ruby-forum.com/t/link-to-remote/116347/3 "2007-10-04T18:06:27Z")

</div>

Frederick C. wrote:

> On 4 Oct 2007, at 16:54, Shandy N. 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

What the fahell! Do you know how long I looked at that. I need a  
vacation, lol. Thanks Frederick.
