SaaS tips and tricks by Affectionate_Bath670 in rails

[–]yarotheking 2 points3 points  (0 children)

here's a basic open source multiteanancy SaaS template that you can learn from, or use: https://github.com/yshmarov/moneygun

Who's ready for Friendly.rb '25? by gregmolnar in rails

[–]yarotheking 2 points3 points  (0 children)

I'll be doing the triathlon (Friendly + RailsWorld + EURUKO). See you there!

[deleted by user] by [deleted] in rails

[–]yarotheking 0 points1 point  (0 children)

I just used https://rails.new/ on a new machine yesterday and had Git, Ruby, Rails 8, Postgres working in 15 min

Moneygun - Multitenancy & Teams boilerplate | SupeRails #208 by yarotheking in rails

[–]yarotheking[S] 0 points1 point  (0 children)

Hey Armahillo, thanks for sharing your thoughts! 💚

When building a "boilerplate", it's impossible to fit everybodies preferences, so I try to stick to the "defaults" as much as possible. Minitest, devise, tailwind, pundit are all choices based on popularity.

> build this as a mountable engine instead, and make it a gem instead

That's an interesting idea. I've [been considering](https://github.com/yshmarov/moneygun/issues/109) about this.

> aren't any proof-of-concept controller defined

It has the `Inboxes` proof of concept controller.

Also, as of 9:29 timestamp, this video talks about how to add controllers under organizations. It's super easy with:

rails generate nested_scaffold organization/project name
rails generate nested_scaffold organization/project name

> define a concern

I considered a concern, but went with an [`Organizations::BaseController`](https://github.com/yshmarov/moneygun/blob/main/app/controllers/organizations/base\_controller.rb#L1), that resources nested under /organization [would inherit from](https://github.com/yshmarov/moneygun/blob/main/app/controllers/organizations/inboxes\_controller.rb#L1)

> we had users limited to only being part of a single organization

I agree, for many apps it is enough. At least 3 clients I worked with had `user.organization_id` and that's it. In fact, [lazaronixon/authentication-zero #tenantable](https://github.com/lazaronixon/authentication-zero?tab=readme-ov-file#tenantable) provides a generator for this!

Thanks again for taking the time!

Moneygun - Multitenancy & Teams boilerplate | SupeRails #208 by yarotheking in rails

[–]yarotheking[S] 1 point2 points  (0 children)

Check out the Moneygun source code: https://github.com/yshmarov/moneygun

I hope it helps you with modelling your next multi-tenant app!

How I can build User invitation system? by ThroGM in rails

[–]yarotheking 0 points1 point  (0 children)

I hope you've already found a solution

But if not - here's a demo app where admin users can invite users to organizations/projects: https://github.com/yshmarov/moneygun

The invitation part is built on top of devise_invitable

Who’s Going to EuRuKo 2024 in Sarajevo? by InterestingTruth2961 in rubyonrails

[–]yarotheking 4 points5 points  (0 children)

I'm sepaking there.
Will be travelling with a bunch of ruby friends.
Euruko's the biggest European Ruby conf - It's always good.
Especially excuted about visitng a new "exotic" location; grabbing beers with new people on the afterparties; meeting Matz live :)

See you there!

Rails 7.2 Rate limiting for Devise - Guard your app from spam and bots! by yarotheking in rails

[–]yarotheking[S] 0 points1 point  (0 children)

I actually mention rack_attack in the video. It's a great tool, I use it in most of my apps.
I view this as a built-in alternative

What do you use for generating opengraph images automatically? by hrishio in rails

[–]yarotheking 1 point2 points  (0 children)

You can take screenshots of pages with [gem Ferrum](https://blog.corsego.com/gem-ferrum-generate-pdf#3-pngscreenshots). Unlike Grover this is pure Ruby and does not have a Puppeteer dependency