Multi step form with image uploader
问题 I want to build 3 step user registration with avatar uploading on 2nd step. So i follow Ryan Bates's guide http://railscasts.com/episodes/217-multistep-forms . I'm using CarrierWave gem to handle uploads. But it seems like i can't store uploaded file info in user session (i'm getting can't dump File error). I use following technique in controller if params[:user][:img_path] @uploader = FirmImgUploader.new @uploader.store!(params[:user][:img_path]) session[:img] = @uploader params[:user]