Link_to_remote

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

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

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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs