Trending

Latest Posts by Sulman Baig

Preview
Rails CI/CD with Dokku & GitHub Actions Learn how to automate Rails deployments using Dokku and GitHub Actions. A step-by-step guide to building a robust CI/CD pipeline for your apps.

🚀 Tired of manual Rails deployments?

Learn how to automate your entire deployment pipeline using Dokku & GitHub Actions!

✨ Secure SSH setup
⚡️ Automated CI/CD
🔄 Zero-touch deploys
🛡️ Production-ready config

Check out my step-by-step guide: sulmanweb.com/rails-dokku-...

#Rails #Ruby #GitHubActions

1 year ago 1 0 0 0
Preview
Rails 8 Production Setup with Dokku Guide Learn how to deploy a Rails 8 application with multiple databases using Dokku. A comprehensive guide for production-ready deployment and maintenance.

🚀 Just published my journey of deploying Rails 8 with Dokku! After battling with costly managed solutions, I've crafted a production-ready setup that's both robust & budget-friendly.

Full guide: sulmanweb.com/rails-8-prod...

#Rails8 #DevOps #WebDev #Ruby #RubyOnRails

1 year ago 0 0 0 0
Preview
Heroku to Dokku: A Rails Dev's Migration Tale Discover how a Rails developer cut hosting costs by 80% migrating from Heroku to Dokku, with practical code examples and real-world deployment insights.

🚀 From Heroku to Dokku: How I cut Rails hosting costs by 80% while gaining more control! Run multiple apps on a $10 server, keep git deployments, and manage DBs your way. No compromise on dev experience.

Full guide with code examples:
sulmanweb.com/heroku-to-do...
#RubyOnRails #DevOps #WebDev #ruby

1 year ago 1 0 0 0

Found this helpful? Give it a RT! 🙏

Questions about Rails deployment automation? Drop them below! Always excited to chat about DevOps and Rails.

#WebDev #GitHubActions #DevOps #Rails8

7/7

1 year ago 0 0 0 0
Preview
Rails 8 CI/CD: GitHub Actions & Kamal 2025 Master automated Rails deployments using GitHub Actions and Kamal. Learn step-by-step setup, security best practices, and production-ready workflows.

Want to level up your Rails deployments?

Check out the complete guide here: sulmanweb.com/rails-8-gith...

Bonus: Includes troubleshooting tips and production-ready configurations! 📚

6/7

1 year ago 0 0 1 0

Warning: Common pitfalls I learned the hard way:

- Always use specific version tags
- Double-check your SSH configurations
- Keep your secrets rotating
- Monitor your GitHub Actions usage

Saved you some debugging time! 🔍

5/7

1 year ago 0 0 1 0

One of my favorite parts? The zero-downtime deployments!

Here's a secret: proper secret management in GitHub Actions made this possible. No more sharing credentials in team chats or docs.

The deploy time? Under 5 minutes! ⚡️

4/7

1 year ago 0 0 1 0

The guide covers everything you need:

- Setting up GitHub Actions workflow
- Configuring Kamal for automated deployments
- Managing secrets securely
- Real-world deployment examples

Plus, all the code is ready to copy & use! 💻

3/7

1 year ago 0 0 1 0

Here's what pushed me to automate:

- Manual deployments eating up dev time
- Inconsistent deployment processes
- Security concerns with handling production secrets
- Need for deployment audit trails

The solution? GitHub Actions + Kamal! 🛠️

2/7

1 year ago 0 0 1 0

🚀 Just published a fresh guide on automating Rails 8 deployments!

Ever spent hours manually deploying Rails apps? I've been there. That's why I created a complete guide on automating deployments using GitHub Actions & Kamal.

#Rails #DevOps #RubyOnRails

1/7

1 year ago 1 0 1 0
Advertisement
Preview
Rails Self-Join Tables: Parent-Child Magic Learn how to implement self-referential associations in Rails 8 for hierarchical data structures. Perfect for building nested relationships in your models.

7/7 Check out the full article for production-ready code and implementation details: sulmanweb.com/rails-self-r...

#RubyOnRails #WebDev #CodingTips

1 year ago 1 0 0 0

6/7 Want to see it in action? I've included real-world examples and performance optimization tips from our production system. No more N+1 queries or circular reference headaches!

1 year ago 0 0 1 0

5/7 Here's a mind-bending fact: with this pattern, you can build everything from org charts to nested categories, all without adding new tables. Plus, querying is as simple as calling .parent or .children 🤯

1 year ago 0 0 1 0

4/7 🔥 Pro tip: Always validate against circular references! You don't want attributes accidentally becoming their own grandparents. Our production system handles thousands of nested relationships thanks to proper validation and eager loading.

1 year ago 0 0 1 0
model settings after migration

model settings after migration

3/7 The real power comes from Rails' elegant model associations. With just a few lines, we can create entire hierarchical structures:

1 year ago 0 0 1 0
Self-joined tables

Self-joined tables

2/7 It all started when I was building a lab management system. The challenge: create flexible, nested attributes that could go infinitely deep. The solution? Self-joined tables! Here's the magic migration:

1 year ago 0 0 1 0

🧵 1/7 Just dropped a new technical guide on self-referential associations in Rails 8! Ever needed to build tree-like structures in your database but kept hitting walls? Let me show you a clean way to handle parent-child relationships in a single table 🌳

1 year ago 0 0 1 0
Advertisement

Thanks buddy 🙏

I have no idea with 103 hints. Will get back to you soon

1 year ago 1 0 0 0
Preview
Rails 8 CRUD: Modern Development Guide 2025 Discover how we built a high-performance Rails 8 CRUD app using importmap, parallel queries, and ViewComponents. Real-world insights & code examples.

🌟 Full article walks through implementation details, code examples, and lessons learned.

Check it out here: sulmanweb.com/rails-8-mode...

Found it helpful? RT to share with your team!

Questions? Happy to help!
7/7
#Rails #RubyOnRails #WebDev #Programming

1 year ago 4 0 0 0

🔧 Key Technical Wins:
- Concurrent query execution
- HTTP/2 optimizations
- Component-based architecture
- Turbo Stream integrations
- Proper error handling

Each piece carefully chosen and battle-tested in production.
6/7

1 year ago 1 0 1 0

📊 Real Numbers from Production:
- 47% faster page loads
- 60% reduction in JS bundle size
- 3x faster hot reloads in development
- 90% test coverage on components

These aren't benchmarks—they're real metrics from our production app serving 100k+ daily users.
5/7

1 year ago 1 0 1 0

🧩 ViewComponents Changed Everything

Moving from partials to ViewComponents wasn't just about organization—it transformed how we think about UI composition.

Encapsulated, testable, and reusable. Our component library grew from 0 to 50+ in three months.
4/7

1 year ago 2 0 1 0

💎 Importmap: The Unsung Hero

Ditched the JavaScript bundler complexity for Rails' native approach. HTTP/2 multiplexing + importmap = faster load times and cleaner dependency management.

No more yarn/npm drama. Just clean, efficient module loading.
3/7

1 year ago 2 0 1 0

🚀 First game-changer: Parallel Queries

We slashed dashboard load times by 47% using Rails 8's concurrent query execution. Instead of waiting for sequential DB calls, we're now running everything in parallel.

Here's a before/after comparison of our dashboard load times:
Before: 2.3s
After: 1.2s
2/7

1 year ago 1 0 1 0

🔥 Just published my deep dive into Rails 8 CRUD development!

After months of modernizing our production apps, I'm sharing everything we learned about parallel queries, importmap, and ViewComponents.

The performance gains? Mind-blowing.

Let me break it down for you...
🧵 1/7

1 year ago 5 1 2 0
Preview
Deploy Rails 8 with Docker & Kamal: 2024 Guide Learn how to deploy Rails 8 apps using Docker, Kamal, and PostgreSQL on Hetzner servers with Cloudflare DNS. A complete production setup guide.

🛠️ Modernize your Rails deployment game!

Fresh guide on deploying Rails 8 using Docker + Kamal + PostgreSQL on Hetzner servers. From local dev to production in minutes, with complete Cloudflare & 1Password integration.

🔗 sulmanweb.com/deploy-rails...

#RubyOnRails #DevOps #Docker #distilled.rb

1 year ago 2 0 0 0
Advertisement
Preview
Rails GraphQL Auth: JWT, Email & Security Learn how to implement secure JWT authentication, email verification, and password management in Rails GraphQL APIs with practical examples.

🔐 Deep dive into Rails GraphQL Authentication! Learn how to implement:
- JWT token generation with `generates_token_for`
- Service-based email verification
- Secure password handling
- Test-driven auth flows

sulmanweb.com/rails-graphq...

#Rails #GraphQL #WebSecurity #API #RubyOnRails

1 year ago 1 0 0 0
Preview
Rails Soft Delete & Audit Logging Guide Learn how to implement soft deletion with robust audit logging in Rails applications, ensuring data integrity and compliance in financial systems.

🔍 Ever wondered what happens when you "delete" financial data in Rails?

I've built a system handling millions of transactions with perfect traceability. From soft deletes to audit logging - here's how we maintain data integrity in fintech.

sulmanweb.com/rails-soft-d...

#Rails #RubyOnRails

1 year ago 3 0 0 0
Preview
Rails Testing for Financial Operations Learn essential testing patterns for building reliable financial applications in Rails, from transaction testing to audit log verification.

🧪 Learn how to bulletproof your financial Rails apps with rock-solid testing patterns!

From handling multi-currency transactions to audit logging - get battle-tested examples for your fintech projects.

Read more: sulmanweb.com/rails-testin...

#Rails #TDD #FinTech #WebDev #RubyOnRails #Ruby

1 year ago 0 0 0 0
Preview
Building a GitHub Activity CLI in Ruby Hands-on guide: Build your own GitHub Activity tracker in Ruby. Perfect blend of API integration and CLI design for growing developers.

🚀 From idea to CLI: Built a GitHub Activity tracker in Ruby!

Simple command: `./bin/github-activity username`

Check out the build journey & contribute: sulmanweb.com/building-git...

#Ruby #RubyDev #OpenSource #DevTools

1 year ago 1 0 0 0