Re: REST urls and Authenticity Token

Michael Rigart
Mon, 19 May 2008 11:56:18 -0000

Looks like the Authenticity token problem was a my bad.

But still I can''t seem to delete the record.
In my list lets say the root folder, I have several child folders. Next
to every child folder, I have a delete action:

<%= link_to image_tag(''icons/folder_delete.png''), {:url
=>
folder_path(folder) }, { :method => :delete, :title => ''Delete
this
folder'', :confirm => "All files and subfolders will be
deleted!\nAre you
sure?" } %>

But for some reason, the id points to the folder I am in and not the
folder that I want to delete from the list.

Did I make a wrong turn with REST?