Here is one tutorial for the beginners to understand how to upload a file using Rails. http://www.tutorialspoint.com/ruby-on-rails/rails-file-uploading.htm If you like this tutorial then please send me your feedback. Thanks Mohtashim -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
You are going to have a problem if you use that in a real app and use Capistrano. I suggest adding a note at the bottom, that explains that public/data is going to be overwritten every time they deploy their app unless public/data is under version control. If public/data is under version control, then every time they deploy they are going to overwrite the uploads to the production site, with the ones from the development server. See: http://almosteffortless.com/2007/03/25/working-with-attachment_fu/ for more information. That page saved my life when I started using attachment_fu. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris G. wrote:> You are going to have a problem if you use that in a real app and use > Capistrano. > > I suggest adding a note at the bottom, that explains that public/data is > going to be overwritten every time they deploy their app unless > public/data is under version control. If public/data is under version > control, then every time they deploy they are going to overwrite the > uploads to the production site, with the ones from the development > server. > > See: > http://almosteffortless.com/2007/03/25/working-with-attachment_fu/ > for more information. That page saved my life when I started using > attachment_fu.Hi Chris, I''m sorry, I could not understand your concern here. Please explain it properly and I will take your suggestion. Regards Mohtashim -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---