The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
strings-inflection release
The strings-inflection helps you inflect English nouns and verbs. The algorithms that this gem uses are based on the analysis of 7,000 most frequently used nouns and 6,000 most used verbs in the English language. It also comes with its own templating to allow you creating more complex inflected sentences. Enjoy!
Ruby Conferences & Camps in 2020 - What's Upcoming? Anything Missing? Updates Welcome
Hello, I’ve updated the Ruby Conferences & Camps in 2020 - What’s Upcoming? page. Anything missing? Updates welcome, see data/conferences2020.yml @ planetruby/calendar. Cheers. Prost. PS: Note, you can subscribe to updates via the web feed in XML or JSON.
Sidekiq by Simple Example
A simple rails app demonstrating how to use Sidekiq for background jobs. https://gryffindor.in/blog/2019/11/28/sidekiq-by-example [more inside]
Choosing a Tech Stack Alternative - The Ups and Downs
Read about the attempts of not using Rails stack and the problems encountered https://www.toptal.com/ruby/choosing-a-tech-stack
Using Rubyfmt with Atom
Rubyfmt, the exciting project from @penelope_zone continues to grow by the day. I set out to hack together a way to get it running slick on Atom. I’m writing today to share those few steps so that you, too, can enjoy the magic of Rubyfmt on Atom! https://dev.to/schwad/using-rubyfmt-with-atom-2oa0
[Screencast] From jQuery to ES6
jQuery has been a great tool for many years, but we’ve seen a transition in the past years where applications have dropped jQuery and moved to vanilla javascript. In this episode, we look at some common jQuery examples and the ES6 equivalencies. https://www.driftingruby.com/episodes/from-jquery-to-es6
[EN] To mock, or not to mock, that is the question
The following checklist is aimed to help you protect yourself from improper usage of mocks and stubs. You may find yourself willing to add/remove items from the list – that is totally OK, just make sure that you stick to your final version.
From ActiveRecord Callbacks to Publish/Subscribe Pattern and Event-driven Design
Imagine that you are working on a large legacy application that also contains the dreaded ActiveRecord callbacks in the models handling most of the business logic. At some point, and under a certain level complexity, the mess caused by that choice might become hard to keep under control, the risk of introducing bugs will increase and the teams(s) working on the application will be way less productive. That will most likely lead to an attempt to find a better way of designing the application. The problem, though, might be that the scope of the application is so huge that introducing any meaningful changes to the application will take weeks, if not months. [more inside]
RubyGems Telegram BOT
Hi I started a little implementation of a Telegram Bot Around RubyGems.org API. Take a look at https://t.me/rubyg_bot, and give me some feedbacks. [more inside]
How to use railway-oriented business transactions to unclutter your Rails controllers
Ever felt that when your Rails app needs to handle complex business logic and multiple steps, your controllers’ methods can become a mess? [more inside]
Track email statuses in Ruby on Rails with SendGrid
When your application sends emails it is useful to know what happens to those emails, like whether it has been delivered, opened, or more importantly, bounced. In this post we’ll build a Rails application that can send emails with SendGrid and receive webhook events to track the status of those emails.
Ruby on Rails: The N+1 query problem
The N+1 query is usually the biggest cause of most performance issues, but very few people know about it. Today we are going to unmask it. [more inside]
Using Bootstrap with Webpacker
A “Getting Started” tutorial for setting up a Rails 6 application on Webpacker 4 with Bootstrap 4. https://rossta.net/blog/webpacker-with-bootstrap.html
Is learning Ruby on Rails actually a piece of cake?
Ruby on Rails is probably one of the few frameworks that developers keep coming back to. [more inside]
DeployPin - stick some tasks around a deployment.
Gives posibility to pin some tasks at different deployment stages (useful when you want to avoid doing non-db-related things inside migrations). https://github.com/skcc321/deploy_pin/