'ruby on rails, file upload and database

maybe it's a question already ask but i did not find a answer.

Hello all.

I'm new ruby on rails.

I'm using Ruby 1.9.3 and rails 3.0.5, i want to create a page to upload file (video) on the shared folder of the server and when the file is upload i want to save the name of the file on my database (SQLITE3).

After i want to use the of HTML5 to list all the video i have on an other page.

The structure look like : Home -> click on button upload file -> upload page file -> return home to see the video list.

If possible i want to make it hand made, no gems.

For now i have try something like mix : http://french.railstutorial.org/chapters/user-microposts#top and http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm. But did not get anything so far the work.

Thank you for the help.

p.s. : sorry if my english is not really good.



Solution 1:[1]

I think you can use paperclip gem to upload image.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Rutul Shah