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.
A quick tour of Rack::Proxy
A quick rack-proxy tour, some quick examples using sharp & powerful tool which I have reached for a number of times over the years.
Clowne: Clone Ruby models with a smile
Clowne is a newly released gem that provides flexible DSL for cloning Ruby models. It was born in production, works inside and outside of Rails, plays nice with Active Record, Sequel, and soon ROM. Read more on Evil Martians blog.
Rails 5.2 adds default option to module and class attribute accessors
Rails 5.2 now supports specifying a default value using default option for the module and class macros like mattr_accessor, mattr_reader, mattr_writer, cattr_accessor, cattr_reader, and cattr_writer respectively. Read more about it here.
Monitoring Ruby on Rails applications with Monit
At Lugo Labs we use Monit to monitor all our Ruby on Rails application related programs, including Nginx, PostgreSQL, Sidekiq, Redis, and websites. Here’s a short walkthrough of our configuration.
Let's Make Something Awesome! — project ideas repo for mentees
Some projects and project ideas I (@zverok) personally want to see done, but have no time to do myself. I am willing to mentor Ruby novices/juniors with a good attitude if some of them will find those projects interesting.
Awesome Kramdown Update - All About (Structured) Text w/ Rich Formatting in Ruby
Hello, I’ve updated the awesome kramdown page that collects kramdown goodies for the converter for (structured) text with formatting markup in markdown conventions. Did you know? Kramdown runs all Jekyll websites and GOV.UK too among others (such as GitLab and more). Anything missing? Updates welcome.
The Proxy pattern revisited
Implement transparent, performant proxies with Module#prepend and meta-programming. [more inside]
Ruby on Rails and LinkedIn authorization
Learn how to implement LinkedIn authorization in your Ruby on Rails app: MORE INSIDE
Gzip a file in Ruby
A quick tutorial on how to gzip a file using Ruby and zlib, as well as how to control compression levels and speed.
Rails Quick Tips: Temporarily Disabling Touching With ActiveRecord.no_touching
Touching ActiveRecord models is quite a common thing in most of the Rails applications, especially useful for cache invalidation. By default, it updates updated_at timestamp with the current time, Here’s a typical example of using touch in a model: [more inside]
Awesome Functional [Progamming (FP)] with Ruby @ Planet Ruby - Edit Me!
Hello, I’ve started a new page / repo titled “Awesome Functional” to collect all things functional in ruby (incl. functional-style programming, pattern matching, immutability, and more). Contributions welcome. Cheers. Prost.
Ruby 2.6.0-preview1 Released
Early version of Ruby 2.6.0-preview1 has been released.
Node.js Ops First with Pandora.js, Today
https://github.com/midwayjs/pandora/wiki/Node.js-Ops-First-with-Pandora.js,-Today Pandora.js is an application manager dedicated to Node.js applications. The first release is built by Taobao Midway team mostly, and involves contributors all over Alibaba group. [more inside]
Blockchain App with Ruby
Blockchain allows us to create applications which do not depend on the centralized resource. How to create a decentralized application based on Ruby on Rails? https://www.nopio.com/blog/blockchain-app-ruby/
Komponent : Component-based in Ruby on Rails
A Rails gem introducing an opinionated way of organizing front-end code, based on components: https://github.com/komposable/komponent
Rails 5.2 supports specifying default value for a class_attribute
A short blog post explains how Rails 5.2 now supports specifying a default value for the class attributes defined using class_attribute: https://blog.bigbinary.com/2018/02/21/rails-5-2-supports-specifying-default-value-for-a-class_attribute.html
Rails `after_commit` everywhere
A short post explaining how transactional callbacks work and how to use them outside of ActiveRecord objects easily. [more inside]
Rethinking the dependencies badge
My proposal for a new dependencies badge that is less binary and more intentional and considerate. Would love your feedback!
Better way to log background jobs
How to setup and use logging mechanism for your background jobs - tutorial with code examples based on Sidekiq: https://www.netguru.co/codestories/better-way-to-log-your-background-jobs
RoR logs analyzer (look forward for feedback)
See how often/fast your views are rendering: https://github.com/igorkasyanchuk/log_analyzer