After much consternation with writing my own file upload code, I have settled with the file_column plugin for Rails.
Why? Well, my uploads were working fine, but I was having weird problems with my RMagick resizing results.
I will not say don’t do it yourself. I say do it, and I will still try to write my own upload and resize code, but I need a stop-gap measure to get my app going for now. Definitely writing your own is the best way to learn and understand what’s going on, and that is something you should do!
I have to say, that file_column should not be the first thing you attempt if you’re still new at Rails. Make sure you understand how the CRUD features generated by scaffold code work, and that you can hand code your own (even by cheating and looking at other code, nothing wrong with that, if you understand it) and then you can focus on file_column. Like all plugins and all code written by somebody else, it has a particular maddness (er.. method..) that you have to stick to. That said, file_column keeps it pretty simple and straight forward for you.
Great stuff.
Couldn’t get attachment_fu to work… (> <;)
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment