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
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