Migrate files between ActiveStorage Providers with ease

There are several ways to migrate files between ActiveStorage Provider. I'm gonna use the mirroring way. First setup your new ActiveStorage provider. Let's say for the sake of this post we're going to migrate from local Disk based storage to S3.

Upload ActiveStorage files to nested S3 path

ActiveStorage doesn't support any kind of nesting inside S3 bucket (as of Rails v6.0). But without nesting, managing Multi Tenant application will be just plain hard. Specially is you use different database/schema per tenant.

Discard nil Hash values in Ruby

Sometime we need to cleanup a hash based for nil values. If you're using Rails/ActiveSupport it's really easy.

How to deploy Sinatra App with Puma and NginX (manually - no Capistrano)

Building even static websites will be fun with sinatra! But deploying might not be fun for everyone. So, Today I'll show you how to deploy a Sinatra App manually with Puma and Nginx.

MailCatcher - Your development mail server and client

Testing emails can be a severe pain in the ass. It takes time to deliver, sent to spam or just doesn't reach out in your inbox.

ফ্রেমওয়ার্ক কেন শিখবেন? - কোড কোয়ালিটি

পুরা প্লাগইনই একটা ফাইলে কোড করে বসেছিলাম। সকল প্রকার HTML, লজিক, পেপালের IPN সব এক ফাইলে! এই জিনিসগুলা এখন আমি এইভাবে চিন্তাই করতে পারি না। এত মেস কিভাবে সম্ভব! এই কোড ক্যামনে মেইনটেইন করবে মানুষ!