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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
I’ve added component reuseability and and easy way to deal with data-targets, and more. Oh, and there’s more documentation. https://github.com/flajann2/fxruby-enhancement/blob/master/README.org ‘Live’ example code can be found at: https://github.com/flajann2/rubyneat-panel/tree/master/lib/rubyneat-panel
One of the most difficult tasks I met during Hanami development is to write integration tests for the Command Line Interface (CLI). This challenge required a deep knowledge of the Ruby toolchain. http://lucaguidi.com/2017/01/20/how-to-test-ruby-cli-the-setup/
Likewise in Rails controllers we have a useful functionality to catch exceptions with rescue_from in order to change the default behavior, it’s too easy to obtain it for any other type of a Ruby object in Rails applications. Check out this post about the solution.
Decoradar is a simple and magic-free decorator+serializer that brings ActiveModel::Serializer/Draper DSL-style declaration to Plain Ruby Object. View more at https://github.com/huynhquancam/decoradar
In this blog post i show you how easy it is to write an Sprockets plugin for your Rails Asset Pipeline: http://masa331.github.io/2017/01/10/writing_sprockets_plugin.html
You may have never used Ruby’s triple-equals operator. But understanding it is key to unlocking the hidden power of
rescue and other Ruby features. http://www.rubyletter.com/blog/2017/01/18/ruby-triple-equals-operator.html
I think people here might be interested in a podcast I’m doing, http://www.techdoneright.io/ – it’s about building better software to develop better careers, companies, and communities. The first episode has Jessie Shternshus of The Improv Effect talking about building trust and building teams, with some great advice on making feedback work. I’d really appreciate it if you checked it out and passed it along — http://www.techdoneright.io/001-building-trust — I think you’ll like it.
I came across the so-called Redis Keyspace Notifications and played around it with Ruby. It basically acts as a Pub/Sub mechanism that enables clients to subscribe to a Redis channel and receive “published” events whenever a Redis command or data alteration is encountered. [more inside]
Charkick make visualization of data easier in a Ruby on Rails application. Its quite easy to work with to create charts to make business decisions. This article is about the introduction to the framework. http://blog.redpanthers.co/chartkick-data-visualization-easy-ruby/
Capybara is an acceptance test framework for web applications. This tutorial explains how to use it with Minitest for integration testing of Ruby on Rails applications. https://semaphoreci.com/community/tutorials/integration-testing-ruby-on-rails-with-minitest-and-capybara
Using inspiration from React, there’s finally a more elegant way to set multiple conditional CSS classes on
link_to and other Rails tag helpers which take a
:class option. No more string interpolation and messy logic in the views. http://www.carlosramireziii.com/a-cleaner-way-to-set-multiple-conditional-css-classes-for-link-to.html
Learn how to scale-up your Elasticsearch usage through filtered aliases. The examples provided use Ruby and the elasticsearch-ruby gem.
In this article we delve into some clean monkey patching and fix an error with the latest version of Kaminari until the project releases a new version. https://solidfoundationwebdev.com/blog/posts/writing-clean-monkey-patches-fixing-kaminari-1-0-0-argumenterror-comparison-of-fixnum-with-string-failed
This weeks’ screencast covers the basics of Active Model Serializers and the JSON API spec for Rails to help you implement consistent, cacheable, and efficient JSON for your Rails APIs.
How do you read binary files like PNG, EXE & ZIP? What is the best way to handle binary data in Ruby? http://www.blackbytes.info/2017/01/read-binary-data/
Another year is behind us and many things have changed in the web development world. We did a little research on the use of Ruby gems and created some stats for 2016 which prove that Ruby is doing very well! Check out our blog post for more detail.
Sorry for the long delay, but the SQL Server adapter is now Rails 5 ready. This includes support for the latest SQL Server on Linux. Tons of Rails 5 work is coming including better contributor Docker support, schema dumping, JSON type support, and more.
Passenger 5.1 contains various improvements for minimizing and preventing down time, introduces more secure defaults and defense in depth, has become faster and uses resources more efficiently, improves developer productivity and updates various ecosystem integrations to stay ahead of the curve.