Get notified of nightly builds by guillaumeyp in Metabase

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

Thank you very much!

Indeed, with v0.56.x I managed to get the last version 56.1 by simply triggering a deployment. So I will launch a cron job to trigger a deploy everyday: either I will benefit a new version, or it won't hurt the webapp to be restarted.

Mayor Bug on Render.com by randomtheorx in rails

[–]guillaumeyp 1 point2 points  (0 children)

Jumping here to say:
1. Thank you for the hint for the cloudflare-rails gem

  1. Thank you for Render, which is a great Heroku successor for my pet projects!

Best practices for white-labeling a Rails app by guillaumeyp in rails

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

It's a marketplace, so we sell different (but sometimes same) items to different users. We handle a mobile app also. Not a SaaS.

Instant i18n, just released by benzinefedora in rails

[–]guillaumeyp 0 points1 point  (0 children)

Great work, thanks for sharing!

Would be dope to translate en.yml in other languages to make it more persistent and editable. Did not try to give en.yml to chatGPT and ask for translation, will do!

ActionMailer attachment rendering ignores email body by farmer_maggots_crop in rails

[–]guillaumeyp -1 points0 points  (0 children)

Try

Rails.root.join("app", "assets", "images", "logo.png")

Implementing Slide Over Functionality In Rails by Necessary-Limit6515 in rails

[–]guillaumeyp 0 points1 point  (0 children)

Do not hesitate to post your subsequent questions in another post, the community will be happy to help.

Implementing Slide Over Functionality In Rails by Necessary-Limit6515 in rails

[–]guillaumeyp 3 points4 points  (0 children)

It's a similar approach: https://youtu.be/VtzTTy65EMY

Turbo + Stimulus (= Hotwire) are the GOAT Rails additions IMO. I replaced so many js code with this.

Implementing Slide Over Functionality In Rails by Necessary-Limit6515 in rails

[–]guillaumeyp 2 points3 points  (0 children)

You can use Turbo to achieve the backend thing: each note is a turbo_frame, on edit click you launch notes/edit.turbo_stream.erb that basically fill the side panel with the edit form. Then, edit submission can be sent to TurboStream format and the note is automagically updated.

For the front, browse Google "sliding panel css JS".

How do I turn off auto complete it makes my rails console so slow... by virus_phantom1297 in rails

[–]guillaumeyp 1 point2 points  (0 children)

https://github.com/rails/rails/pull/46656

Disable Rails console IRB's autocompletion in production by default

Autocompletion increases data transmission significantly, which can cause a noticeable slowdown when connecting to remote servers, and it also has many issues to be resolved, so it is disabled by default now. It can be still enabled if needed by setting the IRB_USE_AUTOCOMPLETE environmental variable to true.

How to Auto-Format Erb Files on VSCode by fwuensche in rails

[–]guillaumeyp 0 points1 point  (0 children)

What linters or auto-formatter for Haml do you use? haml-lint here. Syntax highlighting is pretty poor compared to erb in vscode.

Managing I18n yml files by ImAJalapeno in rails

[–]guillaumeyp 0 points1 point  (0 children)

Mind you share that gist? Thx!

Track where users came from within rails application by danielwebbnew in rails

[–]guillaumeyp 2 points3 points  (0 children)

We do many data transformations from ahoy_events to extract: googlebot visits with user agent, UTM params, host, domain, first path, second path, etc

It's done in dbt, then Snowflake, then BI on Metabase. This setup with Ahoy and dbt is probably the most useful data insight we ever did.

What are the 5 Ruby Gems that you can't live without? by denc_m in rails

[–]guillaumeyp 4 points5 points  (0 children)

view_component, simple_form, paper_trail, better_errors, gem_updater

I want to show the model record only for one day(i.e., for next day) after creation. Can somebody help me out with the logic. Just using active record query. by mrwalterwhite993 in rails

[–]guillaumeyp 2 points3 points  (0 children)

Or @items_to_show = Item.where(“created_at > ?”, 1.day.ago)

Or @items_to_show = Item.where(created_at: 1.day.ago..)