Rails‎ > ‎

Rails - uploading a file

The database type to use for file in rails is :binary . Hence we can use a scaffold and this type to generate a file upload.

For example

riby script/generate scaffold Picture description:text title:string
Comments