Displaying 1 result from an estimated 1 matches for "folder_path".
Did you mean:
filter_path
2008 May 19
4
REST urls and Authenticity Token
...a RESTful aproach for my small project and everything worked fine
untill I wanted to destroy a record.
Lets say we have a listing of folder (a folder is just a record) and I
want to destroy one by using this link:
<%= link_to image_tag(''icons/folder_delete.png''), {:url =>
folder_path(folder.name) }, { :method => :delete, :title => ''Delete this
folder'', :confirm => "All files and subfolders will be deleted!\nAre you
sure?" } %>
How come the form generated for this link doesn''t contain a Authenticity
token? For all my other crud f...