Displaying 4 results from an estimated 4 matches for "save_imag".
Did you mean:
save_image
2008 Jan 17
2
Inconsistent Model creation behavior
...e Worker: (I added the line numbers to the
email, they are not in the worker)
#####################################################################################
class ImagetestWorker < BackgrounDRb::MetaWorker
set_worker_name :imagetest_worker
def create(args = nil)
end
def save_image(args)
@newbook = Book.new
@newbook.comment = "hello"
@newbook.save
14 @newerimage = Image.new
15 @newerimage.user_id = args[:user_id]
16 @newerimage.uploaded_data = args[:temppath]
@newerimage.save
end
end
######################################...
2006 Aug 15
8
AGAIN: file object treated as string
...on the server. The error I
get is the following:
undefined method `rewind'' for #<String:0x2aaaad062eb8>
It seems to be treating my file as a string instead of a File object.
--------- Code is below ------------------
VIEW:
<%= start_form_tag(:action => "save_image", :multipart => true) %>
....
<td><b>Image</b> </td>
<td><%= file_field("image", "picture", "size"=>"30") %></td>
<td><%= submit_tag(" SUBMIT ") %></td>
.......
2006 Aug 15
0
file object treated as a string
I am trying to implement the uploading of a file to a remote server
My upload form looks like this:
<%= start_form_tag(:action => "save_image", :multipart => true) %>
<td><b>Description</b> </td>
<td><%= text_area("image", "descript", "cols" => 33, "rows" => 5) %></td>
<td><b>Image</b> </td>
<td>&l...
2005 Dec 20
3
File Column Directory Add another layer
Quick Question. I understand how to change the default path to
something other than public but what if I wanted to add another
directory into the equation. I want to upload an image into the
following structure:
/public/image/userid/imageid/test.gif
So basically I want to look up the userid in my users table and put
all the images for that user in the same directory. So i have a one