Displaying 1 result from an estimated 1 matches for "store_photo".
2006 Apr 05
6
How to Upload Image through RoR??
Hi,
I have one form , in which I am using file_field teg for input image
file as follows.
=====
<%= file_field("store", "picture") %>
=======
Tha Actual fileld name of my Image field in Database is "store_photo"
with datatype LargeBLOB.
& Inside my Store Model I have specified "def picture" as follows:-
=========================
def picture=(picture_field)
self.store_photo = picture_field.read
end
=========================
Now When I am trying to Uplaod file by submitting form I a...