# Is it normal or a kind of bug?

**URL:** <https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488>\
**Category:** Rails\
**Created:** [July 15, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488 "2007-07-15T19:07:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mix](https://www.ruby-forum.com/u/mix)\
**Post date:** [July 15, 2007, 7:07pm UTC](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488/1 "2007-07-15T19:07:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![mix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mix](https://www.ruby-forum.com/u/mix)\
**Post date:** [July 15, 2007, 10:33pm UTC](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488/2 "2007-07-15T22:33:35Z")

</div>

Why dont you show us your view and controller?

Gokhan  
[www.sylow.net](http://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?

---

<div class="post-metadata">

**Author:** ![mix](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/919ad9/32.png) [@mix](https://www.ruby-forum.com/u/mix)\
**Post date:** [July 16, 2007, 12:06am UTC](https://www.ruby-forum.com/t/is-it-normal-or-a-kind-of-bug/109488/3 "2007-07-16T00:06:06Z")

</div>

Gokhan A. wrote:

> Why dont you show us your view and controller?
> 
> Gokhan  
> [www.sylow.net](http://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)
