Here is one tutorial for the beginners to understand how to upload a
file using Rails.
If you like this tutorial then please send me your feedback.
Thanks
Mohtashim
Here is one tutorial for the beginners to understand how to upload a
file using Rails.
If you like this tutorial then please send me your feedback.
Thanks
Mohtashim
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.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs