I have an update form that looks like this: <% form_for @article do |f| %> <p> <b>Title</b><br /> <%= f.text_field :title %> </p> <p> <%= f.submit "Update" %> </p> and when I try to update it doesn''t work because it prints this in the html form: <form action="/articles/%23%3CArticle:0xb6951170%3E" class="edit_article" id="edit_article_1" method="post"><div style="margin:0;padding:0"><input name="_method" type="hidden" value="put" /> so rails thinks that my article id is "%23%3CArticle:0xb6951170%3E", any idea how to make it work? thanx in advance Pat --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Patrick Aljord wrote:> I have an update form that looks like this: > > <% form_for @article do |f| %> > <p> > <b>Title</b><br /> > <%= f.text_field :title %> > </p> > <p> > <%= f.submit "Update" %> > </p> > > and when I try to update it doesn''t work because it prints this in the > html form: > > <form action="/articles/%23%3CArticle:0xb6951170%3E" > class="edit_article" id="edit_article_1" method="post"><div > style="margin:0;padding:0"><input name="_method" type="hidden" > value="put" /> > > 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 -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---