# Form urls and activeresource object

**URL:** <https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041>\
**Category:** Rails\
**Created:** [October 1, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041 "2007-10-01T21:06:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 1, 2007, 9:06pm UTC](https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041/1 "2007-10-01T21:06:52Z")

</div>

I have an update form that looks like this:

\<% form\_for @article do |f| %\>

**Title**  
 \<%= f.text\_field :title %\>

\<%= f.submit "Update" %\>

and when I try to update it doesn’t work because it prints this in the  
html form:

so rails thinks that my article id is “%23%3CArticle:0xb6951170%3E”,  
any idea how to make it work?

thanx in advance

Pat

---

<div class="post-metadata">

**Author:** ![patcito](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/50afbb/32.png) [@patcito](https://www.ruby-forum.com/u/patcito)\
**Post date:** [October 2, 2007, 11:10am UTC](https://www.ruby-forum.com/t/form-urls-and-activeresource-object/116041/2 "2007-10-02T11:10:19Z")

</div>

Patrick A. wrote:

> I have an update form that looks like this:
> 
> \<% form\_for @article do |f| %\>
> 
> **Title**  
> \<%= f.text\_field :title %\>
> 
> \<%= f.submit "Update" %\>
> 
> and when I try to update it doesn’t work because it prints this in the  
> html form:
> 
> so rails thinks that my article id is “%23%3CArticle:0xb6951170%3E”,  
> any idea how to make it work?

For this to work you will need Rails 2.0 or the simply\_helpful plugin  
(which is no longer available in SVN now that it has been merged into  
Rails 2.0).

–  
Roderick van Domburg  
[http://www.nedforce.com](http://www.nedforce.com)
