Displaying 3 results from an estimated 3 matches for "submitd".
Did you mean:
submit
2009 Jun 10
1
by and by: using two indices in by() or tapply()
...;,"10:27:07","10:18:07","15:29:36","16:29:23","13:46:45","10:45:26"
,"09:21:14","10:29:51","12:32:56","11:06:02","12:41:36","11:03:47",
"10:58:12","10:05:54")
submitdate=c("2009-05-21","2009-06-02", "2009-05-12" ,"2009-05-21",
"2009-05-21", "2009-05-07", "2009-05-19" ,"2009-05-13" ,"2009-06-05",
"2009-05-13", "2009-06-05", "2009-05-28", "...
2006 Aug 15
8
AGAIN: file object treated as string
...39;picture''].read) }
end
end
MODEL:
class Image < ActiveRecord::Base
def picture=(image_field)
extname_dot = File.extname(image_field)
self.extention = extname_dot.slice(1,
extname_dot.length)
self.submitDate = Time.now
end
end
I tried implementing this with Agile web development rails book, and
also tried using other examples on the web, it always comes down to this
issue. Perhaps I am missing something, or this has to do with my ruby
version or the fact that I''m runni...
2006 Aug 15
0
file object treated as a string
....read) }
end
end
My image model looks like this:
class Image < ActiveRecord::Base
def picture=(image_field)
extname_dot = File.extname(image_field)
self.extention = extname_dot.slice(1, extname_dot.length)
self.submitDate = Time.now
end
end
When I click the submit button on the form, it saves the image entry in the database OK, but errors while trying to write the file to the server. The error I get is the following:
undefined method `rewind'' for #<String:0x2aaaad062eb8>
It seems to...