Displaying 3 results from an estimated 3 matches for "delete_url".
Did you mean:
delete_all
2005 Aug 28
8
Save and delete buttons: POST vs. proximity dilemma
I''m in a dilemma: In order to keep GET requests from deleting objects,
I''d like to use the button_to helper to get "something" that generates
a POST request. Unfortunately, that something is a form and forms can''t
be nested.
I''d also like to place buttons related to the same form close to each
other. At the top are some navigational buttons
2013 Sep 30
0
TypeError: no implicit conversion of Symbol into Hash when submitting form to upload files
...one :inventory
has_one :material_list
has_attached_file :inventory, :material_list
def new
{
"name" => read_attribute(:upload_file_name),
"size" => read_attribute(:upload_file_size),
"url" => upload_file.url(:original),
"delete_url" => upload_file_path(self),
"delete_type" => "DELETE"
}
endend
Inventory:
class Inventory < ActiveRecord::Base
belongs_to :upload_filesend
Material List:
class MaterialList < ActiveRecord::Base
belongs_to :upload_filesend
_form:
<%= f...
2013 Mar 28
1
Error Empty file upload result - problem with jQuery bulk file upload
...odel looks like this:
def to_jq_upload
{
:files => [
{
:name => upload_file_name,
:type => upload_content_type,
:size => upload_file_size,
:url => upload.url,
:delete_url => upload_path(self),
:delete_type => "DELETE"
}
]
}
end
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receivin...