Ruby / Rails Inside
@rubyinside
735
subscribers
15
photos
2.51K
links
Daily Ruby / Ruby on Rails articles. Curated channel.
Faker::Hacker.say_something_smart
Suggest link/news
https://t.me/NoMethodError
Download Telegram
Join
Ruby / Rails Inside
735 subscribers
Ruby / Rails Inside
https://boringrails.com/tips/rails-highlight-search-results
Boring Rails: Skip the bullshit and ship fast
Use the Rails helper highlight when showing search results
Use the Rails highlight helper to wrap search result matches in <mark> tags.
Ruby / Rails Inside
https://boringrails.com/tips/rails-excerpt-helper
Boring Rails: Skip the bullshit and ship fast
Show relevant chunks of text with Rails excerpt helper
The Rails helper excerpt can extract a chunk of text that matches a certain phrase, no matter where in the string it is.
Ruby / Rails Inside
https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html
On the Edge of Ruby
Correct Delegation with Ruby 2.6, 2.7 and 3.0
While looking at how a few gems handle delegation on Ruby 2.7, I noticed that many of them are unfortunately incorrect. The official blog post about keyword arguments changes in Ruby 2.7 and Ruby 3.0 is rather long and might be unclear. So I will keep this…
Ruby / Rails Inside
https://boringrails.com/tips/rails-attributes-api
Boring Rails: Skip the bullshit and ship fast
Automatically cast params with the Rails Attributes API
A common practice in Rails apps is to extract logic into plain-old Ruby objects (POROs). But often you are passing data to these objects directly from controller params and the data comes in as strings.
Ruby / Rails Inside
https://www.youtube.com/watch?v=D9zaZVFoYUE
YouTube
Creating a Rails gem for Ray
In this stream, Chris Oliver returns to help me out with the foundation of the Rails gem for Ruby, which will build on the ruby-ray gem (https://github.com/spatie/ruby-ray) which was created in our previous stream (https://youtu.be/qk-kz93IWF4?t=76).
https://myray.app…
Ruby / Rails Inside
https://blog.saeloun.com/2021/02/15/rails-6-1-adds-query-method-associated-to-check-association-presence.html
Ruby / Rails Inside
https://www.honeybadger.io/blog/activerecord-without-unique-id/
Honeybadger Developer Blog
ActiveRecord For Databases Without Unique Ids
We don't get to choose our families. Some of us don't even get to choose our databases. What do you do if you have the bad luck to inherit a database with non-unique ids? In this case study, Regan Ryan shows us how his team faced the challenge.
Ruby / Rails Inside
https://blog.arkency.com/3-tips-to-tune-your-vcr-in-tests/
Arkency Blog
3 tips to tune your VCR in tests
Hi, we're Arkency and it's our blog with meaty content.
Ruby / Rails Inside
https://boringrails.com/tips/ensure-rails-env-vars
Boring Rails: Skip the bullshit and ship fast
Ensure required environment variables are set when booting up Rails
It’s common to use environment variables to configure external services or other options in a Rails app. These ENV_VARS usually are not checked into source control, but rather configured per environment.
Ruby / Rails Inside
https://blog.appsignal.com/2021/02/17/using-webpacker-in-your-ruby-on-rails-app-deep-dive.html
AppSignal Blog
Using Webpacker in Your Ruby on Rails Application — a Deep Dive | AppSignal Blog
Let's take a deep dive into Webpacker and see how the tool works under the hood.
Ruby / Rails Inside
https://blog.rebased.pl/2021/02/17/complex-columns-in-postgres-with-rails.html
Rebased Blog
Complex columns in PostgreSQL with Rails
TBD
Ruby / Rails Inside
https://weblog.rubyonrails.org/2021/2/17/Rails-6-1-3-has-been-released/
Riding Rails
Rails 6.1.3 has been released
Hi everyone,
Ruby / Rails Inside
https://boringrails.com/tips/heroku-data-clips
Boring Rails: Skip the bullshit and ship fast
Use Heroku Dataclips to share query and do ad-hoc data exports
Heroku Dataclips enable you to create SQL queries for your Heroku Postgres databases and share the results with colleagues, third-party tools, and the public. Recipients of a dataclip can view the data in their browser and also download it in JSON and CSV…
Ruby / Rails Inside
https://blog.arkency.com/discord-bot-talking-to-slack-hosted-on-repl-dot-it/
Arkency Blog
Discord-to-Slack bot hosted on repl.it
Hi, we're Arkency and it's our blog with meaty content.
Ruby / Rails Inside
http://sciruby.com/blog/2021/02/16/tensors/
Sciruby
Tensors using NumRuby - SciRuby
Tensor word can have slightly different meaning depending upon the nature of study, like it’s defined differently in Physics, slightly …
Ruby / Rails Inside
https://longliveruby.com/articles/rails-design-patterns-the-big-picture
Ruby / Rails Inside
https://bigbinary.com/blog/rails-7-adds-enumerable-maximum
BigBinary
Rails 7 adds Enumerable#maximum | BigBinary Blog
Rails 7 series | Ruby 7.0 adds Enumerable#maximum
Ruby / Rails Inside
https://www.honeybadger.io/blog/ruby-code-loader-zeitwerk/
Honeybadger Developer Blog
Code Loaders in Ruby: Understanding Zeitwerk
What makes Rails magical? It just might be its code loader. Put a few files in the right places, and - presto! - you have a web app. When you use a class, Rails handle...
Ruby / Rails Inside
https://scottbartell.com/2021/02/24/finding-and-fixing-missing-indexes-in-a-rails-app/
Scott Bartell
Finding and Fixing Missing Indexes in a Rails app
Using NewRelic to find and fix a missing index in a Rails application
Ruby / Rails Inside
https://boringrails.com/tips/rails-date-before-after
Boring Rails: Skip the bullshit and ship fast
Never mix up greater/less than when comparing dates again
When it comes to compare dates, for some reason my brain really struggles. I mix up < and >= all the time and end up flipping them.