Masthash

#Rails

Well, #Piikup is now live taking delivery orders for two local restaurants!

Next step is to monitor order-flow; and beautify the UI!

If you are a #Ruby, #Rails, #CSS, #StimulusJS, or #HTML Developer and want to help build out worker-and-community-owned #Cooperative alternatives to extractive web services; hit me up!

We offer weekly ensembles helping people get up to speed on #Convene on Wednesdays and every other Sunday.

John McDowall
2 days ago

New blog post on animating modals in #rails using Hotwire, Turbo Frames and Tailwind: https://jmd.fm/animating-hotwire-powered-modals-with-stimulus-and-tailwind/

masukomi
2 days ago

A #ruby on #Rails mystery in 3 images. Solution in 🧵

controller has 2 actions, which i've called `first_action` and `second_action` just to distinguish them.

Rails will ALWAYS send you to `first_action` even when the route, and the `action_name` are `second_action`.

images: controller, debugger at breakpoint, routes

I stared at this for SO long before i figured it out while rubber-ducking it.

a screenshot of the controller
a screenshot of the debugger stopped at a breakpoint.
a screenshot of the routes.
jbz
2 days ago

🚇 Introduction to Rails Engines
@FastRuby

"Rails Engines are essentially mini-applications that can be plugged into a larger Rails application. They allow you to modularize your code and keep it separate from the core application. This makes it easier to maintain and update the codebase as a whole."

#DesignPattern #Rails #Ruby
https://www.fastruby.io/blog/introduction-to-rails-engines.html

Ruby Weekly
2 days ago
Ruby Weekly
2 days ago

007: Rails 7.0.5 released! Rails World CFP open, ticket landing page available.

https://www.railschangelog.com/7

Discussions: https://discu.eu/q/https://www.railschangelog.com/7

#programming #rails #release #ruby #webdev

@albertcardona As is plain to see, #Spain and #Portugal are absent from this network... :blobbroken:

#rails #Europe

OmbuLabs
3 days ago

ICYMI: 🚨New pod alert!

OmbuLabs | The Lean Software Boutique, JS Upgrade, and FastRuby.io | Rails Upgrade Services CTO, @etagwerker joined the Jason & Bart show to talk all things #Rails, #Node, #React, and how to deliver high quality productized services 🛠️🔥

You’ll want to tune in: https://podcasters.spotify.com/pod/show/thejasonandbartshow/episodes/Ernesto-Tagwerker---Scaling-a-Software-Agency-The-Power-of-Productized-Services-and-Profitable-Growth-Strategies-e22c2uo/a-a9lrgbf 🎧

#TechDebt

The folder that I hate most in #rails projects is /app/services folder. It is often just a dump for smart asses who like to write classes with a `perform` or `call` method. Probably they've heard that it is a better pattern than overloading the Model or Controller. Which might very much be an issue, but not if you make such a mess of how you implement services. I prefer fat models and controllers with small methods over ill indirection.

Benoit
3 days ago

I am working to identify the origin of an ActiveRecord query via ActiveRecord::QueryLogs.

It seems for one this is a request in a erb template, and the view is rendered because of turbo-rails and action-cable behind.

The question now, is where to put the `ActiveSupport::ExecutionContext.set` to get the best information about who did the call and from where.

#Rails

A first draft that is not correct https://github.com/benoittgt/rails/pull/1/files

Mike Dalessio
4 days ago

Holy forking shirtballs! I finally opened a PR to Rails for HTML5 sanitizer support.

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

This is the last significant step in a three-year yak shave to upgrade the entire Rails sanitization stack to be HTML5 standards-compliant.

Gonna crack open a beverage and watch CI run. 🤞

#rails #html5

Lucian Ghinda
4 days ago

Totally forgot Monday to say that 43 edition of Short Ruby Newsletter is out

In case you missed it, check it out at: https://newsletter.shortruby.com/p/edition-43

#Ruby #Rails #Newsletter

Ruby Weekly
5 days ago
Tyler Willingham
5 days ago

Im starting a new position as a Staff Engineer at Parachute Health starting next week 🎉 Thanks for the support #ruby and #rails communities ❤️

Ruby Weekly
5 days ago
Ruby Weekly
6 days ago

rails-brotli-cache - Drop-in enhancement for Rails cache, better performance and compression with Brotli algorithm

https://github.com/pawurb/rails-brotli-cache

Discussions: https://discu.eu/q/https://github.com/pawurb/rails-brotli-cache

#programming #rails #ruby #webdev

Ruby Weekly
6 days ago
robrich
6 days ago

https://dev.to/amree/introduction-to-ruby-on-rails-and-dockerfile-5a29 - start from the #Ruby base image in #Docker, build up a #Rails base image. Further in the series is docker-compose. Great to see you learning in public https://github.com/amree.

masukomi
6 days ago

using #redcarpet in my #rails app. Noticed lists nested >2 levels deep automatically get collapsed into a max of 2 deep. It's an issue that's existed since 2013... literally for a decade.

Apparently they won't fix it because letting infinite nesting could be a DDoS exploit. https://github.com/vmg/redcarpet/issues/115#issuecomment-4187069

Fine, but holy eff 2 levels is nothing. Gimme whatever a normal person would use + 1 or two.

堂場きみ子@ボッチ鯖
6 days ago

#Mastodon を構成する技術要素 】
下記記事で勉強中。。。。🤔
https://handon.hatenablog.jp/entry/2018/12/18/004652
(引用)
要素名 ソフトウェア名 概要
web server #nginx HTTP/HTTPSリクエスト処理
web #rails Web処理(通常処理)
streaming #Node.js Web処理(Userstreamのみ)
media #swift 画像やカスタム絵文字の格納
db #postgresql アカウント情報やトゥートの格納
cache #redis キューキャッシュ
job queue #sidekiq ジョブハンドラー

Mastodon構成要素の相関図
Sam Rose
6 days ago

I’ve heard Rails is still really good in 2023. Haven’t really touched it since 2019 and even then it was mostly migrating an existing Rails 4 codebase to Rails 5.

I’m following some random Rails 7 Hotwire tutorial and the first thing I’m stumbling on is the almost complete lack of IntelliSense. I’ve tried a bunch of things and Shopfiy’s Ruby-lsp gets some of the way there, but seems to not know anything about Rails.

What am I missing?

#ruby #rails

Collin Donnell
1 week ago

I guess this is the same instinct that keeps me from using service objects in #Rails apps. That pattern just seems to give you some really gross code to organize things in ways that Rails gives us better tools for without.

masukomi
1 week ago

Why you gotta be like that #rails?

screenshot of how rails is gaslightnig me. i requested a google action, but it sent me to an apple action, and yet its claiming i'm in the google action.
François
1 week ago

PSA: Don't forget to restart your Rails web server (in development) if you edit `config/initializers/rails_event_store.rb`. I debugged this for an hour before realizing my mistake!

#RailsEventStore #Ruby #Rails

masukomi
1 week ago

#Rails geeks: Are you aware of a plugin that lets you do something akin to "Sparkle" for mac apps? Something that will let me check some resource in the net, see if there's an update available, and then (with user approval) execute whatever needs to be executed to update to the latest?

it's not hard to write, but it seems silly to do so if someone's already done it and debugged it. ;)

Ernesto
2 weeks ago

In spite of all that and specializing in something so niche, we still have to answer random questions like:

- Why should we trust you guys instead of an intern?

- Why are your rates so expensive?

- Can you upgrade my Rails 2.3 app in a month?

🤓🤣🚀

#UpgradeRails #Rails

Ernesto
2 weeks ago

Since 2019, @FastRuby has been running the #Rails upgrade workshop at @railsconf (both on-site and remotely)

We love sharing our process and OSS libraries to make it easier for people to DIY their upgrades!

#OpenSource #RailsConf

Ernesto
2 weeks ago

Since January, 2022, we have invested almost 600 developer hours improving the process and internal documentation for the "#Rails upgrade roadmap"

https://fastruby.io/roadmap

#RailsUpgrades #TechDebt

Noko report for the time invested in roadmap improvement for the Rails upgrade process
Ernesto
2 weeks ago

I'm working on a new article for the @FastRuby blog that will include some data on the amount of effort we have invested upgrading #Rails applications.

A short 🧵 about that.

#RubyOnRails #UpgradeRails #TechDebt

I was randomly reading up on Elixir/BEAM/Phoenix yesterday for the first time ever. Never had a need previously.

I also saw quite a few benchmarks and comparison sheets between Elixir and other things.

Isn’t it ironic that Mastodon, which is based on Ruby/Rails, ”famous” for not scaling very well is also the host of ”mega-instances” whereas Pleroma/Akkoma/*oma’s are based on Elixir, famous for scaling incredibly well, is mostly used for small/single-user instances?

Yeah, I understand those terms can be discussed ad infinitum, and that there is good/bad architecture etc. But still. Ironic.

#Elixir #BEAM #Phoenix #Ruby #Rails
Tyler Willingham
3 weeks ago

After working on serverless node microservices for the last 6+ months I have to say... just use #rails. Break this rule if you actually know you need to, not before.

Seb Wilgosz
3 weeks ago

Are you a great #ruby engineer who would like to try sth else than #rails ? Join us in Ascenda, to have some fun with Hanami

https://careers.ascendaloyalty.com/

#shopify #layoffs

Brian Kephart
3 weeks ago

tl;dr: It kinda seems like custom transformers were dreamt of at one point, but currently the built-in ImageProcessingTransformer is hardcoded as the only one available.

I opened a discussion for this. I found a PR to make custom file transformers possible that was opened in 2020 but never received attention from the #rails core team. Give it your boost if you'd like, and maybe with a bit of support we can move it along.

https://discuss.rubyonrails.org/t/non-image-file-variants/82817

Brian Kephart
3 weeks ago

Anyone out there written custom Active Storage transformers for #rails ? The built-in stuff is all for images, and I need to process audio files.

Michael Kohl
3 weeks ago

Looking for a remote or on-site (Bangkok, Thailand) Ruby on Rails job? My friends and former colleagues at Oozou are hiring! Fun team, great benefits, and interesting projects.

https://jobs.oozou.com/o/web-developer-ruby-on-rails

#ruby #rails #job #bangkok #remote

Mike Dalessio
3 weeks ago

Shopify is still committed to invest in Ruby and Rails, but very sadly the Ruby and Rails Infrastructure team did get smaller today.

Some of the most competent engineers and finest humans I've ever worked with are now available for hire. Can I make an intro?

DMs are open.

#Shopify #Ruby #Rails

Noel Rappin
3 weeks ago

A bunch of book sales today:

It’s the last day to get 35% off the #pickaxe book with the code RailsConf_Atlanta.

Both Modern Front-End Development for Rails and Modern CSS with Tailwind second editions are 50% off this week with code WEBDEV2023.

#rails #ruby

All available at https://pragprog.com

The cover to Programming Ruby, 5th Edition
The cover for Modern CSS with Tailwind, second edition
The cover to Modern Front-End Development with Rails, second edition