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.
[Screencast] Feature Testing with Capybara
Create Acceptance Tests or Feature Tests to extend your automated tests with browser testing. It can help tests some areas that cannot be reached with other types of tests. https://www.driftingruby.com/episodes/feature-testing-with-capybara
Please stop calling it "magic"
A rant on why the latest trend of calling all metaprogramming “magic” is not really good for the community.
Rails Upgrade - 7-Step Practical Guide
I documented a 7-step Rails upgrade guide based on our recent experience of performing multiple Rails upgrades on medium-sized app, interested to get feedback from ruby community - http://teohm.com/blog/rails-upgrade-practical-guide/
Bridging Rails & Node.js with gRPC
A guide on how to use Google’s gRPC framework to enable painless cross platform communication. [more inside]
Socket Progamming - Playing around with ChatServer
Sockets are the endpoints of the communication channel, both clients and servers have to use sockets to communicate. Once a connection is established you can put data into your socket and it will make its way to the other end, where the receiver will read from the socket to process incoming packets. [more inside]
Loaf - mean & lean breadcrumb trails
The newest loaf has been fundamentally changed to provide even more flexibility and separation from view concerns. You can now specify how breadcrumbs are matched using new :match option and then render them using breadcrumb_trail view helper. It supports Rails >= 3.2. Enjoy!
A quick guide to Rails system tests in RSpec
RSpec 3.7 enables support for Rails 5.1 system tests, here’s how to use them. [more inside]
7 Gems Which Will Make Your Rails Code Look Awesome
Get your awesome gems here => https://blog.rubyroidlabs.com/2017/10/7-gems-rails-code/
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!