Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Paweł Świątkowski boosted
Alexander Gräfe
@rickenharp@popkulturreferenz.de  ·  activity timestamp 6 days ago

I found an interesting way to combine dry-effects and #Hanami providers to implement a tidy current_account functionality:

https://ruby-heretic.com/posts/2025/10/dry-effects-implement-current-account/

Ruby Heretic

Using dry-effects to implement current_account

After switching to rodauth I was not quite happy with my implementation of the current_account feature. So I decided to dig a bit deeper into the documentation and found a really neat solution. I was already using dry-effects, but in a rather haphazard way. Looking at the documentation again, I decided to go the rack middleware route as well. If I put the new middleware after rodauth, I can grab the account_id from request.env[“rodauth”] and store it in the effects handler:
  • Copy link
  • Flag this post
  • Block
Alexander Gräfe
@rickenharp@popkulturreferenz.de  ·  activity timestamp 6 days ago

I found an interesting way to combine dry-effects and #Hanami providers to implement a tidy current_account functionality:

https://ruby-heretic.com/posts/2025/10/dry-effects-implement-current-account/

Ruby Heretic

Using dry-effects to implement current_account

After switching to rodauth I was not quite happy with my implementation of the current_account feature. So I decided to dig a bit deeper into the documentation and found a really neat solution. I was already using dry-effects, but in a rather haphazard way. Looking at the documentation again, I decided to go the rack middleware route as well. If I put the new middleware after rodauth, I can grab the account_id from request.env[“rodauth”] and store it in the effects handler:
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski
@katafrakt@ruby.social  ·  activity timestamp last week

After few weeks of work I'm finally more or less satisfied with my homegrown email solution for Palaver. Read more in this small-blog-post-sized PR.

https://github.com/katafrakt/palaver/pull/49

#Ruby #Hanami

GitHub

Send post-registration confirmation email by katafrakt · Pull Request #49 · katafrakt/palaver

Up until now the project used a fake post-registratoin page containing a confirmation link, because I haven't set up a proper email sending. This was partly because of it's boring, and part...
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski boosted
Ryan Bigg
@Ryanbigg@ruby.social  ·  activity timestamp 3 weeks ago

#Hanami for #Rails Developers Part 2 -"Controllers" now live: https://ryanbigg.com/2025/10/hanami-for-rails-developers-2-controllers.

Ryan Bigg

Ryan Bigg - Hanami for Rails Developers: Part 2: Controllers

Hanami for Rails Developers: Part 2: Controllers
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski boosted
Ryan Bigg
@Ryanbigg@ruby.social  ·  activity timestamp 3 weeks ago

I'm writing a series of blog posts called " #hanami for Rails Developers"

Part 1 covering the "M" of "MVC" is here: https://ryanbigg.com/2025/10/hanami-for-rails-developers-1-models

I'm keen to hear any feedback from Rails developers who read this and don't understand a thing!

Ryan Bigg

Ryan Bigg - Hanami for Rails Developers: Part 1: Models

Hanami for Rails Developers: Part 1: Models
  • Copy link
  • Flag this post
  • Block
Ryan Bigg
@Ryanbigg@ruby.social  ·  activity timestamp 3 weeks ago

I'm writing a series of blog posts called " #hanami for Rails Developers"

Part 1 covering the "M" of "MVC" is here: https://ryanbigg.com/2025/10/hanami-for-rails-developers-1-models

I'm keen to hear any feedback from Rails developers who read this and don't understand a thing!

Ryan Bigg

Ryan Bigg - Hanami for Rails Developers: Part 1: Models

Hanami for Rails Developers: Part 1: Models
Ryan Bigg
@Ryanbigg@ruby.social replied  ·  activity timestamp 3 weeks ago

#Hanami for #Rails Developers Part 2 -"Controllers" now live: https://ryanbigg.com/2025/10/hanami-for-rails-developers-2-controllers.

Ryan Bigg

Ryan Bigg - Hanami for Rails Developers: Part 2: Controllers

Hanami for Rails Developers: Part 2: Controllers
  • Copy link
  • Flag this comment
  • Block
Ryan Bigg
@Ryanbigg@ruby.social  ·  activity timestamp 3 weeks ago

I'm writing a series of blog posts called " #hanami for Rails Developers"

Part 1 covering the "M" of "MVC" is here: https://ryanbigg.com/2025/10/hanami-for-rails-developers-1-models

I'm keen to hear any feedback from Rails developers who read this and don't understand a thing!

Ryan Bigg

Ryan Bigg - Hanami for Rails Developers: Part 1: Models

Hanami for Rails Developers: Part 1: Models
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski
@katafrakt@ruby.social  ·  activity timestamp last month

Earlier today @bradgessler published Supermail for ActionMailer and I started to think that I would like to have this API for emails in #Hanami too.

So now I kind of do, although there is probably a lot of edge cases to discover.

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
James Smith 💾
@Floppy@mastodon.me.uk  ·  activity timestamp last month

In related news, I think I’m going to start learning #Hanami, a Ruby framework that isn’t afraid to have strong community values right there on the front page (https://hanamirb.org/). Anyone seen any good guides to porting a complex #Rails app?

  • Copy link
  • Flag this post
  • Block
Jon Rowe
@JonRowe@fosstodon.org  ·  activity timestamp 2 months ago
@Schneems I'd rather help the rebel alliance #hanami
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski
@katafrakt@ruby.social  ·  activity timestamp 3 months ago

An unexpected find when looking for something else: "Micro-slices" in Hanami

https://katafrakt.me/2025/07/29/micro-slices-hanami/

#ruby #hanami

  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski
@katafrakt@ruby.social  ·  activity timestamp 3 months ago

Finally brought myself to finish the PR which adds local dev mail server and removes the fake post-registration screen with confirmation link. Still a lot of things to improve, but I wanted the bare-bones version more or less done.

https://github.com/katafrakt/palaver/pull/44

#ruby #hanami #palaver

Sorry, no caption provided by author
Sorry, no caption provided by author
Sorry, no caption provided by author
  • Copy link
  • Flag this post
  • Block
Paweł Świątkowski boosted
svoop ✊
@svoop@ruby.social  ·  activity timestamp 4 months ago

A good example for how to strengthen the #Ruby ecosystem by creating framework agnostic gems (and maybe slim adapter gems for the different frameworks like #Hanami or #Roda) rather than just a #Rails engine gem: Thanks a bunch, @achacon !! https://a-chacon.com/en/just%20ruby/on%20rails/2025/07/01/from-engine-to-framework-agnostic-solution.html

  • Copy link
  • Flag this post
  • Block
svoop ✊
@svoop@ruby.social  ·  activity timestamp 4 months ago

A good example for how to strengthen the #Ruby ecosystem by creating framework agnostic gems (and maybe slim adapter gems for the different frameworks like #Hanami or #Roda) rather than just a #Rails engine gem: Thanks a bunch, @achacon !! https://a-chacon.com/en/just%20ruby/on%20rails/2025/07/01/from-engine-to-framework-agnostic-solution.html

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login