Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • 08:26
    jf commented #1125
  • 07:44
    jf edited #1125
  • 07:40
    jf edited #1125
  • 07:38
    jf opened #1125
  • Sep 25 08:06
    jf opened #1124
  • Sep 24 13:05
    kh0m starred hanami/hanami
  • Sep 24 09:18
    nobiit starred hanami/hanami
  • Sep 24 00:40
    forecho starred hanami/hanami
  • Sep 23 03:03
    itopmoon starred hanami/hanami
  • Sep 22 04:30
    HoangNguyen679 starred hanami/hanami
  • Sep 21 17:23
    Kushal334 starred hanami/hanami
  • Sep 17 13:13
    timriley synchronize #1123
  • Sep 17 13:13

    timriley on elide-slice-name-in-lib

    Elide slice name from lib/ when… (compare)

  • Sep 17 13:11
    timriley opened #1123
  • Sep 17 13:09

    timriley on elide-slice-name-in-lib

    Elide slice name from lib/ when… (compare)

  • Sep 17 03:08
    redvoilin starred hanami/hanami
  • Sep 16 00:49
    woarewe starred hanami/router
  • Sep 15 07:33
    BulatKarimov starred hanami/hanami
  • Sep 14 17:14
    kotx starred hanami/hanami
  • Sep 14 17:05

    depfu[bot] on update

    (compare)

Edouard
@inouire_twitter
After reading the article and having a look at the examples, I'm still find it hard to have the global "framework" view. What is standard? What is custom?
Am I the only one? Do you think it will get better after a more polished integration?
Sven Schwyn
@svoop
Big thanks for all the work, can't wait to start my journey on Hanami 2!
Sebastjan Hribar
@sebastjan-hribar
@jodosha awesome work, like always :fireworks:
Are there any news regarding database sharding?
Luca Guidi
@jodosha
@sebastjan-hribar not yet :)
Feedback for application template to be implemented in v2.0.0.alpha3 https://twitter.com/hanamirb/status/1390298114829914112
Sebastjan Hribar
@sebastjan-hribar
@jodosha thank you for the feedback. I'd be interested to know how people are tackling multitenancy when using Hanami out of the box. We're nearing a launch for two apps (read projects :) and I have a few questions around deployment and scalability, but I'll post them on discourse later this week.
markpostura.com
@marcobeffa
@jodosha great! thank you
Lairan
@alex-lairan

Hello !

I am a user of Hanami router, but I never used 'resources' or thing like that, always to direct action routing.

I would like to try it but it doesn't find my action, how can I tell hanami router to find the class inside the correct namespace ?

    namespace 'admin' do
      resources 'applications', only: %i[index]
    end

    get '/admin/applications', to: Controllers::Admin::Applications::Index
                Name Method     Path                           Action                        

  admin_applications GET, HEAD  /admin/applications            Applications::Index           
                     GET, HEAD  /admin/applications            Application::Controllers::Admin::Applications::Index
Sven Schwyn
@svoop
:warning: A word from the unofficial shameless commerce division: Given the partial meltdown in Rails-world and Hanami 2 going alpha2, now may be a good time to promote and sponsor Hanami in some way e.g. Tim Riley, Piotr Solnica, Luca Guidi or Sebastian Wilgosz (hanamimastery).
Kori Roys
@koriroys
anyone have a link to docs on how to make a link or button to delete a resource?
would be much obliged
Kori Roys
@koriroys
figured it out using a form_for
guillermo haas-thompson
@memoht
Hello @jodosha and everyone. So, without backstory, I am about to give Hanami another try after a couple of years since the last effort. I have a single main app that I have developed in Ruby on Rails a few times and customized each time. I want to try to build this same functionality in Hanami. I was wondering if you recommend starting with 2.0 Alpha or staying with the current release. There is no rush on my part and this is a great opportunity for me to push myself (force myself really) to seriously look at alternatives to Rails while still embracing the underlying Ruby language that i <3 so much.
Sebastian Wilgosz
@swilgosz

@memoht I'd strongly suggest to go with > 2.0-alpha releases. The framework had been almost entirely rewritten, and some basic concepts had been changed.

It's much, much easier to use now, but as it's still alpha, there are some things not finished yet, such as view helpers not being accessible. I already work with Hanami 2.0 early releases to identify such troublesome parts, and I'm working on official guides, as with video tutorials to make it easier to start.

Definitely if you'll work with 1.3 Hanami release, then you'll need to re-do a lot of the work soon.

:warning: A word from the unofficial shameless commerce division: Given the partial meltdown in Rails-world and Hanami 2 going alpha2, now may be a good time to promote and sponsor Hanami in some way e.g. Tim Riley, Piotr Solnica, Luca Guidi or Sebastian Wilgosz (hanamimastery).

@svoop thanks, I especially appreciate that you decided to give a support to HanamiMatery now, in this early stage, where it's hardest to keep pushing with the content!

guillermo haas-thompson
@memoht
@swilgosz Thanks for the advice. Looking forward to the challenge(s).
Sebastjan Hribar
@sebastjan-hribar
Hi all, this is not a Hanami question, but it is something I currently struggle with. It's about API credentials and the way we should store them. I have the details here in case someone can help. Thank you.
Sebastian Wilgosz
@swilgosz
Hi, I wanted to share the summary of my work related to Hanami 2.0 tutorials :)
I would appreciate any feedback/comments/ ideas for improvements or suggestions for the next topics:)
Clément Morisset
@morissetcl
Hi guys, is Hanami mailing list still working ? I get a not found response when trying to subscribe.
Sebastian Wilgosz
@swilgosz
Yeah, can confirm that. Not working atm.
Sebastian Wilgosz
@swilgosz
@morissetcl I have reported it, will ping you when it's fixed:)
Matt Culpepper
@mculp
Noting that it took two years between alpha 1 and alpha 2, how long do we expect before the next major release? I'm wondering because I'm greenfielding a rebuild of a project that will be used in production. ~500k requests per day. I don't think I can sell using "an alpha" in prod
Sebastian Wilgosz
@swilgosz
I expect the official 2.0 release to be pulled together this year. This is why I started https://hanamimastery.com project already. @solnic already started working on ROM 6.0 tasks, there is not much for alpha3 version to be done, so I think its reasonable to expect first beta releases befor summer ends. I can be a bit too optimistic, but more people are joining to the team to help with pulling ng it all together, so even I can be pisitively surprised by the progress:).
Positively surprised*
Matt Culpepper
@mculp
Hope so! Thanks for the reply!
trafium
@trafium
Hello everyone! I am currently trying to integrate Sidekiq into my Hanami app which uses hanami-reloader. Currently on code changes I need to manually restart Sidekiq process. Is there a known way/guide how to automatically reload hanami inside sidekiq on code changes as well?
adam12
@adam12_:matrix.org
[m]
@trafium: I'd probably just run Sidekiq with rerun. It's a Ruby gem.
@trafium: Hanami-reloader uses guard, so if you wanted to bypass a dependency, you could maybe have a guardfile for Sidekiq, but it might be easier just to install rerun gem then rerun -- sidekiq -c path/to/config or similar.
trafium
@trafium
@adam12_:matrix.org Thanks, we've managed to make it work with https://github.com/uken/guard-sidekiq for the time being.
trafium
@trafium
Also, a question concerning Hanami 2.0.
My colleague and I are currently developing/maintaning a couple of Rails applications and have little production experience otherwise. Being heavily burned by both our earlier incompetence but also later by Rails, we are considering using Hanami 1.3 for our next commercial application product. Since Hanami 2.0 is on the horizon, we're wondering if there is any information available about how painful it would be to migrate 1.3 -> 2.0 when it's released.
adam12
@adam12_:matrix.org
[m]
@trafium: No information on the migration available yet (at least that I'm aware of).
Sebastian Wilgosz
@swilgosz
@trafium I know there is https://github.com/hanami/bookshelf - an example application that https://github.com/cllns had been updating from 1.3 to 2.0
I am working on guides in genwral, but upgrade notes will be added when beta version will he released the soonest.
Sebastjan Hribar
@sebastjan-hribar

Also, a question concerning Hanami 2.0.
My colleague and I are currently developing/maintaning a couple of Rails applications and have little production experience otherwise. Being heavily burned by both our earlier incompetence but also later by Rails, we are considering using Hanami 1.3 for our next commercial application product. Since Hanami 2.0 is on the horizon, we're wondering if there is any information available about how painful it would be to migrate 1.3 -> 2.0 when it's released.

You're not alone, at least :) We'll launch with 1.3 as we're closing in on the 1.0 with our app and will migrate later.

Sebastian Wilgosz
@swilgosz
@trafium @sebastjan-hribar I would happily dig into the topic and prepare some guides, maybe HanamiMastery episodes too, if there would be enough need for this. I am just a bit afraid it's too early yet.
Luca Guidi
@jodosha
New Git Branches for Hanami development: https://twitter.com/hanamirb/status/1405792411561955330
jaypandya
@jaypandya:matrix.org
[m]
Hello guys
Using Hanami how can we connect to multiple databases? one way I can see is to use Sequel as ORM but if we've way to do it with default ROM then it would be great
Sebastian Wilgosz
@swilgosz
@jaypandya:matrix.org rom is built on top of sequel, it allows all the features sequel does as far as I know.
jaypandya
@jaypandya:matrix.org
[m]
Yes I see it
Thanks for your help 😃
trafium
@trafium
Question: is it possible to use partial templates inside hanami/mailer?
Sebastjan Hribar
@sebastjan-hribar
@swilgosz Please excuse my question, but is there any hands on examples how to do this? I've asked this before but got nowhere. I assume it involves more than just adding more adapters to environment and .env files.
Sebastian Wilgosz
@swilgosz
@sebastjan-hribar you mean: the multi databases with rom? I don't have such resources just yet. If you think it's important, I do support my github sponsors by prioritising Hanami Mastery tutorials creation for their needs.
dagnachewa
@dagnachewa
hello everyone
I am new here and would it be ok to ask question comparing against the other framework ?
Sebastian Wilgosz
@swilgosz
Sure! @dagnachewa I am in the middle of preparing detailed rails comparison e-book, I am afraid It's the only comparison I could help at the moment
trafium
@trafium

Answering my own previous question about partials/layouts in hanami/mailer: we ended up hacking together hanami/view instance with hanami/mailer to get all those sweet view helpers, partials and layouts in our mailers.

New question: what is the preferred way of sharing configuration code between two web applications?

For example, I have apps/auth/application.rb and apps/admin/application.rb and I want them to share content security policy, some included helpers for views/actions and staging/production host configuration. I've found in this chat's history discussion about sharing config via inheritance (ie Auth::Application and Admin::Application extend Web::Application where shared configuration is defined), but as I understood this approach could cause problems.

Sebastian Wilgosz
@swilgosz
@trafium I only know that in Hanami 2.0 settings are done via dry-configurable and dependency loading via dry-system and zeitwerk, so it's easy to inject the config as a dependency anywhere - but I see you're using 1.x which I don't know :(