# How to: use one form for updating an entry which the user specifies by.e.g., click on it

**URL:** <https://www.ruby-forum.com/t/how-to-use-one-form-for-updating-an-entry-which-the-user-specifies-by-e-g-click-on-it/134457>\
**Category:** Rails\
**Created:** [April 11, 2008, 1:17am UTC](https://www.ruby-forum.com/t/how-to-use-one-form-for-updating-an-entry-which-the-user-specifies-by-e-g-click-on-it/134457 "2008-04-11T01:17:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6de8d8/32.png) [@nik](https://www.ruby-forum.com/u/nik)\
**Post date:** [April 11, 2008, 1:17am UTC](https://www.ruby-forum.com/t/how-to-use-one-form-for-updating-an-entry-which-the-user-specifies-by-e-g-click-on-it/134457/1 "2008-04-11T01:17:25Z")

</div>

Hello, thank you for paying attention to my post! So basically, I have  
a list of entries:  
\<% for x in Chore.find(:all) %\>

- \<%= x.title %\>
\<% end %\>

\<%= form\_tag :url =\> {:controller =\> ‘chore’, :action =\> ‘update’} do  
%\>  
\<%= text\_field\_tag :title %\>  
\<%= submit\_tag %\>  
\<% end %\>

Let’s say, one chore entry is spelled incorrectly and I would like to  
change it, could I do something as clicking on the title and then it  
shows up in the text field, then I change the spelling and hit submit?

The difficulty I encountered is how one passes the “id” to the URL so  
that the update “knows” whom to update.

Thank You A Million!!

---

<div class="post-metadata">

**Author:** ![nik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/6de8d8/32.png) [@nik](https://www.ruby-forum.com/u/nik)\
**Post date:** [April 11, 2008, 1:56am UTC](https://www.ruby-forum.com/t/how-to-use-one-form-for-updating-an-entry-which-the-user-specifies-by-e-g-click-on-it/134457/2 "2008-04-11T01:56:35Z")

</div>

Yeah, take a look into in-place editing.

Julian.

Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #3 out NOW!  
[http://sensei.zenunit.com/](http://sensei.zenunit.com/)
