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? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Why dont you show us your view and controller? Gokhan www.sylow.net Mix Mix 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?-- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Gokhan Arli wrote:> Why dont you show us your view and controller? > > Gokhan > www.sylow.net > Mix Mix 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) -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---