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.
Invalid or incomplete POST parameters
This was an interesting error: [more inside]
Error Handling in Ruby: Part I
In this article, we’re going to explore the following topics:
Help us to provide translations for Ransack gem!
Hey everyone! The ransack gem ( https://github.com/activerecord-hackery/ransack ), very popular in Ruby community, needs help to provide translations for many locales. Send us a pull request with translations of any locale you know to make Ransack more accessible in different languages! [more inside]
CodeFund has raised over $36,000 for OSS
July 8 marks the 1 year birthday of CodeFund (previously Code Sponsor). In the past year, we’ve raised over $36,000 for Open Source (including ruby related gems/sites). If you have a ruby gem website or blog, we’d love to help you as well! [more inside]
How to Speed Up Your Ruby on Rails App
Let’s see what you can do to optimize the performance of a Ruby on Rails app and speed it up. https://yalantis.com/blog/how-to-speed-up-your-ruby-on-rails-app/
Measuring Chronic Pain Outcomes with Ruby and Twilio
My recent talk about tackling a private problem with the help of Ruby is now available online: https://www.youtube.com/watch?v=ZtBckwQaEBA
csvutils - tools & scripts for working w/ comma-separated values (csv) datafiles
Hello, I’ve put together a new library / gem, that is, csvutils - a collection of tools ‘n’ scripts for working with comma-separated values (csv) datafiles - the world’s most popular tabular data interchange format in text :-). Command-line tools include: csvhead, csvheader, csvstat, csvsplit, csvcut and more. It’s just a start. Happy data / text wrangling with ruby. Cheers. Prost. PS: For some getting started .csv datafiles, see the /football.csv collection (incl. English Premier League, Bundesliga, Seria A, Ligue 1, European Cup, etc.).
40 Best Ruby On Rails Companies Websites [State For 2018]
Carefully curated list of most famous & best-designed websites and web applications based on Ruby on Rails framework. Looking for inspiration? You found the right piece of content. https://ideamotive.co/blog/40-best-ruby-on-rails-companies-websites/
Ruby Command Line Options
In this article, we’re going to explore the following topics:
Dependency Injection Containers vs Hard-coded Constants
Dependency injection (DI) is a somewhat contentious topic in the Ruby community. Some argue that DI containers are unnecessary complexity cargo-culted from Java. Some argue that DI is the path to cleaner, simpler, more-testable code. In this article, I want to compare and contrast two approaches: hard-coded constants versus using a DI container. The difference might not be as big as you think!
Check your sidekiq performance and stats
https://github.com/igorkasyanchuk/sidekiq_log_analyzer if you need to check the performance of sidekiq worker (number of runs, duration, time).
Rutie 0.3.4 released! “The Tie Between Ruby and Rust.”
Now with full encoding support and to/from bytes for Ruby strings. Processing strings and working with foreign encodings for Ruby in Rust has never been easier. [Rutie]
The Ultimate Guide to HTTP Requests in Ruby
HTTP is the protocol that browsers & web servers use to communicate, so it’s important to understand if you want to write any kind of web application. In this article you’ll learn how to use HTTP in Ruby: https://www.rubyguides.com/2018/08/ruby-http-request/
Hanami v1.3.0.beta1
Switch to RSpec, deprecations, minor enhancements, and bug fixes. This will be the final minor version before 2.0. http://hanamirb.org/blog/2018/08/08/announcing-hanami-130beta1.html
csvpack - Work with tabular data packages (download, read into sql db, query, ...)
Hello, I’ve updated the csvpack (†) library / gem that let’s you work with tabular data packages in ruby. Download comma-separated values (CSV) datafiles in text - also known as tabular datafiles and read into any sql database (e.g. SQLite, PostgreSQL,…), query w/ ActiveRecord and more. Cheers. Prost. PS: You can find 100+ (starter) tabular data packages at the /datasets github org (thanks to the DataHub.io folks). (†): formerly known as datapak
Context Binding in Ruby
In this article we’re going to explore the following topics:
[Podcast] Ruby Rogues - Understanding Your Production Apps with Jared Norman
In this episode of Ruby Rogues, the panel talks to Jared Norman about understanding your production apps. Jared has been programming since he was about 10 years old and for the past 7 years, he has been doing Ruby. These days, he runs a consultancy company called Super Good Software doing Ruby on Rails stuff and mostly eCommerce. They talk about his article You Can’t Save Everyone: Some Exceptions Should Be Left Alone, when capturing exceptions is the right way to go, developing with good visibility in mind, and more! [more inside]
Changing the Way Ruby Creates Objects
Explore how Ruby creates and initializes objects, and how we can modify the default behavior in this edition of Ruby Magic! https://blog.appsignal.com/2018/08/07/ruby-magic-changing-the-way-ruby-creates-objects.html
A quick step-by-step guide on how to run Rails app on Digital Ocean
A quick step-by-step guide on how to run Rails app on Digital Ocean https://medium.com/@igorkhomenko/a-quick-step-by-step-guide-on-how-to-run-rails-app-on-digital-ocean-c44c97ab161e
Ruby 2.5 adds KeyError#receiver and KeyError#key
Learn about KeyError#receiver which returns receiver associated with the KeyError object & KeyError#key returns the key which caused the exception. https://crypt.codemancers.com/posts/2018-08-06-ruby-2-6-adds-key-error-receiver-key/
Fast Kubernetes client library
Based on excon, uses persistent HTTP connections and request pipelining. https://github.com/kontena/k8s-client