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.
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! https://andymaleh.blogspot.com/2020/11/glimmer-dsl-for-opal-v060-hello-date.html
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: https://blog.mayurkumar.info/Apexit-01-How-to-make-your-site-more-visible-using-SSL-certificates/
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. https://www.honeybadger.io/blog/ruby-parser-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. https://www.botreetechnologies.com/blog/why-ruby-on-rails-is-widely-used-for-web-application-development
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): https://andymaleh.blogspot.com/2020/11/glimmer-dsl-for-swt-417100-hello-table.html
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.
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. https://onrails.blog/2020/11/09/updated-tutorial-how-do-i-update-my-model-from-a-checkbox/
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
Using ActionCable with ActiveJob in Rails 6 to execute OS commands
I recorded a video on how to use ActionCable with ActiveJob to execute OS commands & stream their result to the browser - https://www.youtube.com/watch?v=0aG4bzcAT0E [more inside]
From Editor to IDE
Visual Studio Code is a powerful editor by itself, but with the addition of a few extensions, we can turn it into a much more intelligent IDE. https://www.driftingruby.com/episodes/from-editor-to-ide