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.
ArrayIncludeMethods v1.0.4 and Glimmer v1.0.3
ArrayIncludeMethods v1.0.4 (missing methods from Ruby Array API) and Glimmer v1.0.3 (DSL Framework used in Glimmer DSL for SWT JRuby Desktop Development GUI Library) have been released!
ActiveRecord SetOps
- Union, Intersect, and Difference set operations for ActiveRecord (also, SQL’s UnionAll).
ShinyCMS 20.11 - the 'tricky second album' release ;)
Not quite the first of the month, but I tagged and released v20.11 of ShinyCMS a few days ago. There was a surprising amount of stuff in the release notes - apparently I’ve been busy - but the highlights are mentioned on the main release page (the first link here). In particular, all the models now have ‘soft delete’ via acts_as_paranoid, atom feeds are generated for the blog and news sections, and I added a set of partials and helpers for adding consistent pagination and search to pretty much every ‘list of data’ (index) page in the admin area. In the process of getting the pagination working, I Iearned that Kaminari has a very long-standing issue with routing into Rails Engines [1] [2] [3], which is a bit of a problem for a CMS built almost entirely out of them. Fortunately the community has provided a fix <3
Building a modern CRM in Ruby on Rails — Part 1
This is the first of a series of tutorial on building a Customer Relationship Management application using Ruby on Rails. Hope you enjoy reading it!
footballdata-12xpert gem - download & convert datasets from 22+ top football leagues
Hello, I have updated the footballdata-12xpert gem that lets you download, convert & import datasets (in .csv) from 22+ top football leagues from 25 seasons back to 1993/94 from Joseph Buchdahl (12Xpert)’s Football Data website (football-data.co.uk) up and running since 2001 (and updated twice a week). Happy data wrangling and enjoy the beautiful game with ruby. Cheers. Prost. PS: Do you know any good football data sources? Please, tell.
Glimmer DSL for Opal v0.6.0 Hello, Date Time!
Glimmer DSL for Opal v0.6.0 (Auto-Webify Ruby Desktop Apps with Rails & Opal) just shipped with a newly supported sample from Glimmer DSL for SWT: Hello, Date Time!
Rebuilding Redis in Ruby - New Chapters - Hashes and Sets
Rebuilding Redis in Ruby is a free online book, where we rebuild Redis, in Ruby, from scratch. [more inside]
How to make your website more visible using SSL certificates
Do you want to make your website more visible? Learn how adding an SSL certificate will make your site more visible in details here:
Building a Programming Language in Ruby: The Parser
Understanding parsers is like seeing the matrix. You start to understand the tree-like structure of your code. You begin to realize that so many language features are just syntactic sugar concealing a simple core. In this article, Alex Braha Stoll will guide us through the world of parsers. He’ll explain basic concepts, then use Ruby to implement a simple parser for his toy language, Stoffle.
How To Be Serverless on Heroku
Serverless is a fantastic way to save money, it’s a little tricky but you can run ActiveJob’s in a serverless way on Heroku via their One-Off Dynos.
Why Ruby on Rails is Widely used for Web Application Development
Ruby on Rails web development is the perfect choice for your web applications. Here are 4 reasons why Ruby on Rails development makes your app development process efficient and simpler.
Glimmer DSL for SWT v4.17.10.0 Hello Table, Spinner, and DateTime Widgets!
Glimmer DSL for SWT (JRuby Desktop Development GUI Library) v4.17.10.0 and v4.17.9.0 ship with many changes, including the new samples Hello, Table! (showing baseball playoff schedule), Hello, Spinner!, and Hello, Date Time! (with data-binding):
football-sources gem - get football data via web pages or web api (json) calls
Hello, I’ve put together the new football-sources gem / library that lets you get football data via web pages or web api (json) calls (and convert to Football.CSV format / datasets, for example). Happy data wrangling and enjoy the beautiful game with ruby. Cheers. Prost. PS: Do you know any good football data sources? Please, tell.
Low Hanging Fruits in Frontend Performance Optimization
In this blog post, I describe the often-overlooked techniques that can significantly improve your web app’s overall performance. [more inside]
How Do I Update My Model from a checkbox?
Let’s say you have a Todo app, with a model Todo that has a string title, and a boolean field, completed. We are going to use Stimulus to update our model remotely on the server when we check off the todo. And we’re going to use a nifty JavaScript API called fetch() to make it all happen.
How to GraphQL with Ruby, Rails, Active Record, and no N+1
You work on a mature web application that cleanly separates backend and frontend. The server-side code, written in Ruby, is mostly responsible for translating HTTP requests into SQL statements (with the help of an ORM) through rich and well-documented API. You choose GraphQL over REST to streamline your endpoints, but your database is not happy with all the extra queries. After much searching, you find an exhaustive hands-on guide on fighting N+1 from a fellow GraphQL-ing Rubyist at Evil Martians… Here it comes!
How to Dual Boot your Rails app
Running your app against two versions of Rails is easier than you might think. This is super handy for making sure your Rails app is prepared for the next version of Rails while still developing against the current stable version. Watch the screencast on How to Dual Boot your Rails app