I’ve put :multipart => true in a form, added a file_field_tag, selected
a file and then sent the page… The result is a “nice” 500 error page,
is it normal?
Why dont you show us your view and controller?
Gokhan
www.sylow.net
Mix M. wrote:
I’ve put :multipart => true in a form, added a file_field_tag, selected
a file and then sent the page… The result is a “nice” 500 error page,
is it normal?
Gokhan A. wrote:
Why dont you show us your view and controller?
Gokhan
www.sylow.net
Mix M. wrote:I’ve put :multipart => true in a form, added a file_field_tag, selected
a file and then sent the page… The result is a “nice” 500 error page,
is it normal?
i’ve tried with a simple controlles such as
def create
obj = Model.new(params[:obj])
if obj.save
redirect…
else
render :new
end
end
and the view:
form_for :obj, :url => model_url, :html => {:multipart => true} do
|form| -%>
file_field_tag :something
submit_tag ‘send’
The code id similar to this (i’ve not it here now but i’ve tried with
something like this)