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.
Why proxying Bugsnag (or similar service) might be a good idea?
In this article I explain why it’s a good idea to proxy JS errors reporting through the back-end when using Bugsnag and how I implemented it in Ruby.
Ruby Case Statement Behind The Scene
A case statement consists of an optional condition followed by zero or more when conditions. It returns the value of the first ‘truthy’ when statement. Otherwise nil.. See more
Let's Encrypt Ruby on Rails and Nginx
How we run Ruby on Rails websites on SSL: install Let’s Encrypt certificate on a Ruby on Rails application running on Linux and Nginx. Use Certbot to manage the certificates and renew them automatically.
Protocol OAuth2: let’s play with Doorkeeper & Omniauth/OAuth2. Part 1.
Know your sandbox: shallow dive into OAuth2 protocol with Rails and Doorkeeper. [more inside]
Bare Bones Rails Action Cable Tutorial
A simple tutorial on how to implement an Action Cable chat server. [more inside]
Ruby Conferences & Camps in March 2018 - What's Upcoming?
Hello, at the calendar page @ Planet Ruby I collect all ruby conferences and camps from around the world. What’s upcoming in March 2018? [more inside]
How to parse command line options with Ruby OptionParser
Learn how to parse command line options in your Ruby scripts with the OptionParser class:
Build your own RSpec
A gentle introduction to DSL and metaprogramming in Ruby - READ MORE
Hanami v1.2.0.beta1
HTTP/2 Early Hints, Unobtrusive JavaScript (UJS), new error page based on better_errors, CLI hooks, project middleware, enhanced support for plugins, bug fixes. [more inside]
Why You Should Write Your Project with Ruby On Rails
Which language you choose for your project depends on multiple factors: level of support, scalability, availability of libraries, cost of frameworks that can cut down development time, and so on. These days, a lot of companies (both small startups and big, well-established businesses) choose Ruby on Rails as their primary framework for development.
Active Record associations without foreign keys
A step by step guide to make Rails work with Oracle
What is the nightmare of every developer? Exactly: Oracle DB. Since it took me some where some > 3 days to figure out how to have an instance of Rails connected to an Oracle Database on my mac, I decided to write this step-by-step guide, hoping to save you some time whenever you will have to face this nightmare. [more inside]
Poor man's Spotlight: a minimalist Ruby desktop search
Poor man’s Spotlight is a minimalist Linux desktop search, backed by a Ruby service. [more inside]
Passenger 5.2.1: Heroku RAM-pricing, Apache crash & max pool idle time fixed
Version 5.2.1 of the Passenger application server for Ruby, Node.js, Meteor and Python has been released. We fixed a few important regressions, notably the max pool idle time setting, and a crash in the Apache integration mode. We’ve also made it possible to use our new RAM-based pricing plan on Heroku. For more information on the issues fixed:
Custom Helper Methods for the Rails console
It’s a small thing, but adding custom methods to the console cuts out a lot of repetition. Read More on the reinteractive blog.
Superb Dashboard with WordPress and Github widgets
Create your dashboard using “Smashing”. Build widgets for Wordpress page views. [more inside]
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.