Questions like that are usually ignored in a community of volunteers. Many consider this type of question a “demand that you do it for me”. Perhaps you should rephrase that with something like
"Hey, I’m trying to upload a file to my site, and after following the directions at , I’m stuck. Can anyone look at my code and tell me where I went wrong?
You should be able to search Google for “rails upload files” and find your answers. There are several Rails plugins that will help you out and have excellent documentation with working examples.
Good luck… remember, if you get stuck implementing one of your solutions, I’m sure someone will help you if you can show some code