[Facebooker-talk] problem doing a CRUD update?

Allen Walker auswalk at gmail.com
Thu Sep 18 02:09:02 EDT 2008


This appears to be some kind of routing issue since facebook wraps 
everything in a post... so here's what I'm doing:

<% form_for :article, :url => { :action => "update", :id => @article } 
do |f| %>                                                   
  <%= render :partial => "form", :locals => { :f => f } 
%>                                                                         
                                                                                                                                    

<% end -%>          

renders:

<form action="/myapp/articles/7" method="post">

....
</form>                                               

The form comes up populated with the model data, but I submit though I get:


  Unknown action

No action responded to 7



In the rake routes the "update" requires a HTTP "put" so I'm wondering 
if that is causing the problem.

thanks


More information about the Facebooker-talk mailing list