Yaro Shm πŸ‡ΊπŸ‡¦  SupeRails

@yarotheslav@ruby.social
228 Followers
305 Following
249 Posts

🌍 I hope to meet you in person on a Ruby conference somewhere!

I speak πŸ‡ΊπŸ‡¦πŸ‡¬πŸ‡§πŸ‡΅πŸ‡±πŸ‡«πŸ‡·πŸ‡©πŸ‡ͺπŸ‡ͺπŸ‡Έ fluently. Ask me why :)

From Ukraine, Chernihiv

RoR screencastshttps://superails.com/
RoR dev loghttps://blog.corsego.com/
YouTubehttps://www.youtube.com/@SupeRails
Friendly Show podcasthttp://friendly.show
Access & edit Rails encrypted credentials in different code editors:

Hotwire Native Rails is now Tailwind 4 compatible! πŸŽ‰πŸ₯³

Biggest change - how you define custom variants in V3 vs V4

This let's you to apply classes like

<div class="hotwire-native:bg-black non-hotwire-native:bg-white">

https://github.com/yshmarov/hotwire_native_rails

GitHub - yshmarov/hotwire_native_rails: A Hotwire Native generator for Rails applications

A Hotwire Native generator for Rails applications. Contribute to yshmarov/hotwire_native_rails development by creating an account on GitHub.

GitHub

Time to upgrade to Tailwind 4! ✨

βœ… Troubleshoot & run upgrade tool
βœ… Fix tailwind:watch
βœ… Fix aspect ratio, dialogs, opacity, etc
πŸ₯³ remote tailwind.config.js

Watch here:
https://superails.com/posts/tailwind-4-upgrade-228

Upgrading Tailwind CSS from v3 to v4 in Rails #228

Keep your dependencies updated! Tailwind 4 can be configured in the CSS file (no need of tailwind.config.js) However you need to first update tailwind.config.js in a very specific way to run ...

🀐Youtube and Vimeo have public, unrestricted endpoint that lets you get any video attributes (title, author, thumbnail, embed_html, etc)

It is super useful if you want to allow users embed rich media into your app.

Watch SupeRails #227:
https://superails.com/posts/oembed-226

oEmbed - the secret public API for content metadata #227

Want to allow users to embed third-party content? (youtube or vimeo videos, podcast players) You should use oEmbed. This way you won't have to manually handle (sanitize, secure, ensure rendering)...

These VS Code plugins make the development experience for me and everybody on my team much better

βœ… See how each extension works
βœ… Learn to configure extensions

Watch here:
https://superails.com/posts/best-vs-code-extensions-for-ruby-on-rails-developers-for-2025-226

Best VS Code Extensions for Ruby on Rails Developers for 2025 #226

Copy my VS Code settings here: https://blog.corsego.com/vscode-cursor-extensions-rails The extensions I use in every app: "esbenp.prettier-vscode", - lint CSS and JS "bradlc.vscode-tailwindcss...

Busy weekend! Just upgraded my longest-running Rails app (started on Rails 4) from Rails 7.2 to Rails 8.

And published v1100 of the app to production! πŸ₯³

Super smooth upgrade.

Only small inconvenience that I had to dig into - manually add "net-protocol" for "net-smtp"

Usually running "rails app:update" creates a lot of conflicts in my ENV files.

Exploring the @bullettrainco codebase, I found this line in each ENV initializer.

As of now, I set my configs at the end of the file, instead of overriding defaults. Easier to upgrade & see changes

Does anybody here use Typesense in production?

In the life of a man, there comes a moment when he needs to scale his search

Not handling petabytes of data? No need for Elasticsearch

Typesense is powerful, open-source, easy to sync with Rails & deploy

Here's how I add full-text typo-tolerant search server to Rails

https://superails.com/posts/typesense-search-with-ruby-on-rails-225

#rubyonrails #typesense #rails

Typesense search with Ruby on Rails #225

Previously I did the obvious thing and searched my Postgres database for Posts by "title". But when you need to scale your search due to a a large dataset, or want to use advanced search feature...

How to abstract, store, edit global app settings?

I think gem rails-settings cached is great:

βœ… one tiny db table

βœ… admin UI

βœ… define fields, validations, defaults

βœ… you can use it before Rails is initialized

See how I use it:

https://superails.com/posts/gem-rails-settings-cached-for-global-app-settings-224

#rubyonrails

Global app settings with gem rails-settings-cached #224

Allow admin users to change global app settings like app name, contact email. With this gem you store settings in the database, and have a UI to change settings. This way, developers do not h...