Rails Admin: creating a custom action
Rails Admin is an excellent way of quickly creating a backend for your website. It’s simply perfect for that project that is focused on frontend but you still need a backend to do simple management tasks. Although it’s very complete, sometimes you may want to customize a few things and for this you can create […]
Paperclip: how to move existing attachments to a new path
I made the mistake of using the default Paperclip url/path for multiple models, which is problem if an user upload a file with the same name and id, causing a conflict. Also, using the same directory for different models is kind of messy. Here are the steps that i took to fix this problem:
Recent comments