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.
Choosing Elixir for Shedul’s tomorrow
Here’s the story of complex process of researching, evaluating, choosing and introducing Elixir to cozy yet shrinking world of complex Rails monolith at Shedul - a global salon booking system. [more inside]
Relative Testing vs Absolute Testing
The aha moment that made it easier for me to test by consciously switching between two types of tests.
How to: Test a web crawler with RSpec
In this article I walk through a real application feature: Building a web crawler; and show how I’ve tested it using RSpec – https://pooreffort.com/blog/testing-a-web-crawler-with-rspec/
Trumail v0.1.0
I’ve created a wrapper for the trumail.io email verification service. https://github.com/drexed/trumail
Value Objects for your Rails application
I’ve released Embedded, a gem that lets you implement Value Objects very easy so you can make your app more cohesive. Try out and give me your feedback!
What can you do with the Array#zip method?
Learn what’s possible with the Array#zip method! You will also learn about the power of chaining methods in Ruby. http://www.rubyguides.com/2017/10/array-zip-method/
rom-rb 4.0.0 was released
Big news today! rom-rb 4.0 was released with auto-mapping, associations in core, new changeset gem and much more. Check out announcement article.
Wrapper Based an Unobtrusive DCI Ruby library
WrapperBased is an alternative approach to ActiveSupport::Concern. Instead of including mixins in models, any class including controllers can serve as context where objects and behaviors are combined.
Exploring Functional Programming with Ruby
As I’m learning, exploring functional programming doesn’t have to mean throwing out object-oriented programming. In fact, the two compliment each other nicely in Ruby.
The Practical Guide to Using ActionCable
Most guides and blog posts around ActionCable focus around simple chat apps to show the typical websocket workflow. That is great, but how is ActionCable suppose to fit into your everyday SaaS-like Rails application?
Raxx, Rack for Elixir that supports HTTP/2 and streaming
1.0 release candidate discussion [more inside]
Visualizing Rails logs With Jupyter Notebook
Digging thru the raw Rails log stream to debug a tricky problem…is…painful. Here’s a way to slice-and-dice your Rails log output using Jupyter Notebook.
InvoicePrinter 1.0 is out
InvoicePrinter 1.0 is out! Please try it out and let me know what you think!
[Screencast] Testing with RSpec
Using RSpec, learn how to create tests for your application and view your coverage. https://www.driftingruby.com/episodes/testing-with-rspec
Two ways for testing eager-loading of ActiveRecord associations in Rails
There are 2 ways (the easy one and the unusual) to test whether your eager-loading is actually of associations is actually working .
OOP and Rails System Tests
In this post we will take a look at a way to improve sample Rails 5.1.3 System Test using POROs, collaborators, delegation and modules. https://bpohoriletz.github.io/2017/10/16/oop-and-rails-system-tests.html
Hanami v1.1.0.rc1
Association aliases, entities as types in custom schema, --relation option for model generator, RSpec metadata, bug fixes, feature freeze. http://hanamirb.org/blog/2017/10/16/announcing-hanami-110-rc1.html
Unsafe Object Deserialization Vulnerability in RubyGems
Read this for the full explanation of the problem and the very speedy fix. http://blog.rubygems.org/2017/10/09/unsafe-object-deserialization-vulnerability.html
Organizing My First Conference: Southeast Ruby
Organizing a conference is a mix of joy, sweat, and fear. Here is an in-depth look at what it took for Southeast Ruby. [more inside]
Custom Rails error pages
I’ve written an article on how to customise the error pages that ship with Rails, this includes some templates to help you get started. https://pooreffort.com/blog/custom-rails-error-pages/
Explicit Params Binding in Ruby Web Apps (why convenience is sometimes inconvenient)
I express my concerns with Rack’s behavior of automatically converting params to arrays or hashes depending on how the params are formatted in my lattest article Explicit Params Binding in Ruby Web Apps. It also expands on how convenience can sometimes be inconvenient.
Sending JSON API like 401 Unauthorized error with Devise
I put a short HOWTO on bending Devise error messages to adhere to JSON API spec.
No More Best Practices
This article is my thought about so called “Best Practice” in programming language. Looking for discussions about this topic :-)