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.
Gotchas with Rails System Testing
This blog post will help you to understand some of the issues which I faced while adding system tests in my Rails application.
FasterPath 0.3.1 Released!
FasterPath 0.3.1 has just been released. This is the project where I rewrote one method from Ruby into Rust and made my Rails sites pages load more than 30% faster. Now we’re up to 15 optimized path handling methods with performance gains on individual methods up to around 90% faster. This is the first release with Binary Releases precompiled and I would like your help to test this feature out. Looking for Mac and Linux system tests, Windows support is coming soon, and you can help with this issue #143. [more inside]
CryptoKitties (Copycats) Cattributes Gene Reader - Inside the CryptoKitties Genome
Hello, I’m rebuilding the cryptokitties off the blockchain in ruby called copycats. Want to know more about your kitties genes / genome? Use the KittyReport class to build a certified page in text with formatting in markdown - Example Kitty #100000. For all traits (fur, pattern, eye shape, highlight color, …) see the Traits Charts (in Kai/Base 32 Notation). Cheers. Prost.
gem "GemsAssetsWebpackBridge"
The gem generates a bridge-file with Webpack aliases which you can use to get an access to ruby gem assets. This gem helps to migrate your Rails app from Sprockets to Webpack, in case if you have split already your monolith Rails app into gems and stored assets in these gems and you look for a way how to teach Webpack to use your assets from ruby gems.
Get your Rails performance metrics 📈 into Chrome with the `server_timing` gem
View performance metrics (time spent in ActiveRecord, Redis, etc) for each of your Rails app requests in Chrome’s Developer tools with the server_timing gem. Production Safe.™
Use Ruby Objects to Keep Your Rake Tasks Clean
In this article, I talk about how to keep ancillary pieces of your infrastructure fairly clean and minimalist. In terms of Rails, one place I’ve seen where it’s easy to end up with “bags of code” that aren’t really structured or straightforward to test are Rake tasks. Let’s look at a Rake task I recently refactored on a client project. In the spirit of DHH’s On Writing Software Well series, I’ll be demonstrating by looking at live production code.
The 2018 Rails Survey is Live!
For the last 10 years, Planet Argon has surveyed the Rails community to learn more about the state of the framework. We’d love if you participated in the 2018 survey and shared with your peers! Complete the survey here: http://rails-hosting.com/
log_analyzer was updated with PDF/CSV support
https://github.com/igorkasyanchuk/log_analyzer/ Generate performance report of your Views based on your log file (export to CSV/PDF added). Looking for a contributor who can add export XLS.
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: https://readysteadycode.com/howto-parse-command-line-options-with-ruby-optparse
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. http://hanamirb.org/blog/2018/02/28/announcing-hanami-120beta1.html [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. https://yalantis.com/blog/why-you-should-write-your-project-with-ruby-on-rails/
Active Record associations without foreign keys
https://thomasleecopeland.com/2018/02/28/associations-without-foreign-keys.html
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: https://blog.phusion.nl/2018/02/27/passenger-5-2-1/
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]