I have used
<%= file_field “file”, “picture”%> in my form.
In the controller side I have taken @filename =@params[“file”]
But I am getting “picture#StringIO:0x369dda8” in the @filename.
How can i get the filename of that file in a string instead of hash?