Multipart form system for rails