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.
How to add an Emoji in Ruby on Rails Application
Ruby on Rails applications can be integrated with amazing features including adding emojis. Here’s how you can use Gemoji RubyGem to add emoji in RoR application. [more inside]
ActiveRecord CTE
activerecord-cte gem brings Common Table Expressions support to ActiveRecord and makes it super easy to build and chain complex CTE queries. [more inside]
command_kit 0.1.0 released!
command_kit 0.1.0 has been released! After much work, feedback, testing, this is the first stable release of CommandKit. CommandKit is a new Ruby CLI toolkit for building correct and robust CLI commands as plain-old Ruby classes that include modules. Some advantages of CommandKit is declarative DSL syntax, modular design (every feature is an includable module), a variety of built-in features (ANSI colors, --help man-pages, sub-commands, less/more pager, XDG support, etc), and easy to test.
Optimizing Memowise Performance
MemoWise is benchmarked as the fastest Ruby memoization gem. This post describes how we made it so speedy. [more inside]
Improve Ruby on Rails App Development Performance in 5 simple ways
Improve your Ruby on Rails application development performance using these 5 simple ways and take your RoR app development lifecycle to the next level. [more inside]
Glimmer DSL for SWT Hello, Label! Sample
Learn the ins and outs of applying labels in Glimmer DSL for SWT desktop GUI with or without images, or just use as separators of content. [more inside]
Counting Active Record Queries
How does counting Active Record queries can be useful and how to implement it? Find out here: [more inside]
New release of 💎 dns_mock. Now you can mimic internationalized DNS records
Added ability to use internationalized hostnames. All hostnames in UTF-8 will be represented as Punycode. Mimic any DNS records for your test environment and even more! https://github.com/mocktools/ruby-dns-mock
Glimmer Desktop App Images Can Auto-Download on the Web with Opal
Imagine this scenario. You built this baseball game ticketing management app for clerks to accept ticket purchases over the phone. You already applied branding to it. Now, you want to take it online. Thankfully, Glimmer DSL for Opal lets you auto-run all the GUI code on the web without changing a single line of code. [more inside]
Refactoring Your Rails App With Service Objects
Rails apps tend to start simple, with clean models and controllers. Then you start adding features. Before you know it, your models and controllers are big, unwieldy, and hard to understand. Refactoring into service objects is a great way to split these big pieces up, so they’re easier to understand, test, and maintain. https://www.honeybadger.io/blog/refactor-ruby-rails-service-object/
Integrating Occson - a secure remote config store - with a Ruby on Rails app
Occson is a service allowing configuration variables to be stored and retrieved securely, in a platform-agnostic way. This blog post explores how to integrate it with a Ruby on Rails app. [more inside]
Fast JSON API Serializer by Netflix in Ruby On Rails
DELETED POST [more inside]
Complex Ruby Transformations made simple with Dry::Transformer | Hanami Mastery #6
Hi, have you ever wondered how to easily make two API standards communicating together? I’ve released a new HanamiMastery episode related to data transformations in Ruby, I hope you’ll find it useful too! [more inside]
Glimmer DSL for SWT Hits 39k Downloads in Just Over 1 Year
What the title says! In other news, Glimmer 2 was released, including the new Shine data-binding syntax support, which was extracted from Glimmer DSL for SWT and shared with Glimmer DSL for Opal (sharing is caring eh!?). [more inside]
ActiveRecord Callback Chain: A Cool (and Weird) Edge Case
Today we will be talking about AR Callbacks and a recommendation of a “per use-case” strategy for validating incoming data to your Rails Apps. [more inside]
How to do Web Scraping with Ruby on Rails for a Static or Dynamic Website?
Web scraping with ruby on rails can be challenging but it can be done easily with the process listed out in this article. Here’s a guide explaining how to do that. [more inside]
Active Record Encryption in Rails 7
Rails 7 will be introducing a very cool new feature for ActiveRecord - application-level encryption. In this post, we will take a high-level look at how to use this functionality, discuss some cool things it can do, and acknowledge some of its limitations. [more inside]