added support for file upload in Rails;