I had the same error .. ( see my recent post ... http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/7e989c24581115a3/0812ebc44c574c17?hl=en&lnk=gst&q=can%27t+dump#0812ebc44c574c17 )
I solved the issue by clearing out the tempfile created..... ====== quote ====== Hi David I was re-running my test to output the trace , but I tested again another trick ... by trying to delete directly the upload tempfile attribute of the ActionDispatch::Http::UploadedFile created instance before the redirect_to ... params[:clip][:data].tempfile = nil redirect_to ... and it's running ... so params[:clip][:data] = nil or params[:clip] = nil is not enough .. On Jun 2, 4:05 pm, PeterI <[email protected]> wrote: > hi, thanks a lot for your answer! > > the application is very simple. user registration with authlogic > andfileupload. [1] shows the FileUploadController. Authlogic creates a > session object. a before filter looks if the user is logged in. [2] > shows the UserSessionController. > > I dont think its authlogic that dumps thefileinto the session, > because i got the error since i tryed to implement afileupload > (before i added user registration), and i got the same error from > attachment_fu plugin. by the way the application is hosted on > github:https://github.com/peonic/ichsehichseh > is there a way to disable session store for a Controller. > thx > > [1] > class UploadItemController < ApplicationController > before_filter :require_user > > def new > @user = current_user > @upload_item = UploadItem.new() > @story = @user.story.first > end > > def create > @upload_item = UploadItem.new(params[:upload_item]) > @upload_item.story = current_user.story.first > > if @upload_item.save > flash[:notice] = "Upload completed" > redirect_to user_url(current_user) > else > flash[:error] = @upload_item.errors > render :action => new > end > end > end > > [2] > class UserSessionsController < ApplicationController > before_filter :require_no_user, :only => [:new, :create] > before_filter :require_user, :only => :destroy > > def new > @user_session = UserSession.new > end > > def create > @user_session = UserSession.new(params[:user_session]) > if @user_session.save > flash[:notice] = "Erfolgreich Eingeloggt" > redirect_to user_url(@user_session) > else > render :action => :new > end > end > > def destroy > current_user_session.destroy > redirect_to new_user_session_url > end -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

