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.
Blab gem
The gem allows to debug Ruby apps by tracing execution context, local vars and current memory usage.
Export your middleman articles to medium
If you have a middleman blog and considering cross-posting articles to medium. There is a gem you can use. Have a look 😁
FactoryTrace Gem
factory_trace gem helps you to find unused factories and traits, for now FactoryBot is supported only. Any contribution is welcome!
jsonapi-scopes Gem
This gem allows you to filter and sort an ActiveRecord relation based on a request, following the JSON:API specification as closely as possible. [more inside]
xpool.rb 2.0.0 released
xpool.rb is a light weight in-memory process pool that was built with xchannel.rb. A process pool can utilise all CPU cores on CRuby, while also providing an isolated memory space for running a job. The 2.0.0 release is much more simple. Please have a look :)
Rails-Pretty-Logger Gem
A new version of Rails-Pretty-Logger gem has been released, track your logs from dashboard, filter by date , use highlight, add hourly rotation option if you need. Have fun :)
[ANN] Sudo Rails - Sudo mode for your Rails controllers
I just released a first version 🚀 of a new gem: Sudo Rails, sudo mode for your Rails controller. You can easily protect any Rails action with a customizable password confirmation strategy (ships with Devise and Clearance integration), just use the sudo method: [more inside]
A Guide to Function Composition in Ruby
A comprehensive overview of Ruby 2.6’s “function composition” and how its new operators work, including how you can use them not just with Proc and Method but with any object that implements call.
How to Create Temporary Files in Ruby
You’ll learn about temporary files in Ruby. Exactly how to create them, how to use them & the key things you must know about.
kittyverse gem - cryptokitties helper classes for cattributes, traits, and more
Hello, I’ve updated the free (open source) kittyverse library / gem that includes helper classes for cattributes, trait types, traits, genes, genomes and more for cryptokitties and copycats cryptocollectibles (on the blockchain). Happy data wrangling and bits & bytes slicing w/ ruby. Cheers. Prost.
Feedi API - RSS
This service allows you to transform RSS feed into an awesome API. [more inside]
Up the Ancestor Chain with method_missing
Clutch your carry-on luggage, because today we’ll travel all the way up the ancestor chain. We’ll follow a method call and see how it goes up the chain as well as find out what happens if the method is missing. And because we love to play with fire, we won’t stop there but continue on to playing with fire overriding the BasicObject#method_missing. If you pay attention, we might also use it in a practical example. No guarantees though. [more inside]
RubyKaigi and the Path to Ruby 3
The three major areas of planned improvement for Ruby 3 are performance, concurrency, and static analysis:
How O'Reilly Media upgrades Rails apps with dual boot
“Dual booting” to streamline Rails upgrades is a hot topic right now, and my team at O’Reilly Media is on board. Here’s how we upgrade Rails now, using dual boot.
New form gem SexyForm.rb Released!
The first version of SexyForm.rb has now been released! SexyForm is a dead simple HTML form builder for Ruby with built-in support for many popular UI libraries such as Bootstrap. Pairs nicely with any Ruby web framework such as Rails. https://github.com/westonganger/sexy_form.rb This library was originally born from FormBuilder.cr that I created for the Crystal language. The pattern/implementation of FormBuilder.cr turned out so beautifully that I felt the desire to have the same syntax available in the Ruby language. What was awesome is that, the Crystal and Ruby syntax is so similar that converting Crystal code to Ruby was straight forward and quite simple.
Writing custom validations for Rails' models.
Hey guys check out this cool blog for writing custom validators for our app’s models. [more inside]
HNPWA built with Ruby on Rails and Stimulus.js
Sometimes you want a development side project that will push you. A project that is non trivial, and provides lots of opportunities to build a complicated, data hungry application. Here is an example of such a project that rivals any complicated website in performance, and interactivity, built entirely in Ruby on Rails and Stimulus.js
[Screencast] Nested Forms from Scratch with StimulusJS
Using StimulusJS controllers, adding nested forms to a Rails application is easy and unobtrusive. In this episode, we look at an alternative way of creating nested forms without the Cocoon gem. https://www.driftingruby.com/episodes/nested-forms-from-scratch-with-stimulusjs
Build a chat app with Ruby on rails
Create a one-on-one & advanced group chat interface to connect the different users on your app. [more inside]
Luda - A UI framework will be loved by designers and developers.
Hello, I’m the author of Luda. Luda is a lightweight and responsive UI framework for modern web development. I created a gem for Ruby developers. Gave it a try! You’ll like it.
Create An Array With A Single Hash Without The Curly Braces In Ruby
Something I accidentally discovered I can do in ruby: [more inside]
Ruby Conferences 'n' Camps in 2019 Update - What's Upcoming in May? What's News?
Hello, I’ve updated the Ruby Conferences ‘n’ Camps in 2019 - What’s Upcoming? Calendar page @ Planet Ruby. ++ Tue+Wed May/14+15(2d) - Ruby Conference Cracow @ Cracow, Poland ++ Fri+Sat May/17+18(2d) - Balkan Ruby @ Sofia, Bulgaria ++ Fri May/24 (1d) - Pivorak Conf @ Lviv, Ukraine ++ Sat+Sun May/25+26(2d) - Ruby Unconf Hamburg @ Hamburg, Germany. Happy meeting up with rubyists in 2019. Cheers. Prost. PS: Do you have a favorite conference? Let’s give a shout-out to EuRuKo 2019 (in June in Rotterdam, the Netherlands).