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.
The Lesser-known Features in Rails 5.1
Last week, during RailsConf 2017, Rails 5.1 shipped. If you followed the announcements, you’ve seen the big features. But the reason I love Rails isn’t the headline features. It’s those quality-of-life changes that make me happier when I’m writing Rails apps. And Rails 5.1 is full of them.
Functional Object Composition and MVC
A partially theoretical post which explores gluing together OOP encapsulation and functional programming. Read more
[Screencast] Testing and documenting our API
Creating tests and docs for our Rails API with rspec_api_documentation, and controlling our JSON with active_model_serializers. Read more
tty-tree initial release!
tty-tree helps you print directory/structured data in tree like formats. Enjoy!
Announcing the RubyLetter Podcast
The RubyLetter podcast is a short weekly podcast dedicated to giving you the tools and news you need to stay in-the-know about what’s happening in Rubyland. We’ll talk about Ruby news and events, and highlight tutorials and resources that we found useful.
Feeling alone in the Ruby community and replacing Rails with Roda
Here I write about why and how I replaced Rails with Roda in a 5 years old big application and my frustrations with the way the Ruby community uses to think about development of libraries.
[Screencast] Setting up your Rails API
Starting a rails API from scratch using interesting and important gems. Read more
[Screencast] Counter Cache Associations
When displaying a count of records, this will generate extra SQL Queries. Learn how to reduce the number of SQL queries called with counter caching the number of associated records. https://www.driftingruby.com/episodes/counter-cache-associations
InvoicePrinter 1.0.0.rc1 released
InvoicePrinter, gem for super simple invoicing in Ruby, is very close to the first stable version with a fresh rc1 release. API is now stable. Please let me know if something is broken for you, thanks!
Result Objects - Errors Without Exceptions
This article covers some of the problems with exceptions, and introduces a functional, alternative approach to error handling.
Idiomatic Ruby: writing beautiful code
An article based on Ruby best practices and idiomatic code:
Automating Favicon Generation in Rails using Sketch
A brief tutorial on using sketch, rails, rake and imagemagick to simplify generate a favicon.
Released version 0.1.0 of timeliness-i18n gem!
Hey guys! I created recently a gem called “timeliness-i18n”, that contains all translations used by gem timeliness (https://github.com/adzap/timeliness). The URL for gem is: Read more
Advanced Text Layout is Coming to HexaPDF
HexaPDF will gain first traces of advanced text layout in the coming months and background information on why this is hard in PDF -
Following Rails redirects with Capybara
This a very short note on setting up Capybara to correctly follow redirects with Rails classic redirect_to @object pattern.
Enter (amper)Sandman
A small overview of using the ampersand syntax for enumerable collections. We know that we can send methods to the object, and use local procs or lambda’s, but did you know you can use normal local methods too?
Protect the Data!
If you were to ask yourself - what is the essence of any software system - what would you say? There are several things I can think of, such as clean code, DRY methods, integration testing, the technology being used, great design… Still if I had to pick between losing all of those, or just the data and almost my answer would be: “Protect the data”.
Machine Learning with Ruby
We’ve started a new awesome list for Machine Learning in Ruby. Read more
Service objects in Ruby with MethodObject
Lightweight and dependency-free solution for the creation of method objects: extract your complex methods from your models and move them into service objects.
3 Ways to Keep Your Ruby on Rails Apps Healthy
Introducing a few quick and simple ways you can help ensure your app’s code is secure, good quality code, and monitored in production.
Ruby on Rails Patterns – Decorator Vs. Presenter
Bundler’s new update options
Let’s see how Bundler’s new command line flags allow you to be more conservative when updating gems.
Expressive tests with RSpec - part 1: Describe your tests properly
In this article we will have a look how to use describe, context and other RSpec features to write more descriptive tests Read more
How to make sure you deliver the product
My view on working on MVPs or tight deadlines. We don’t need to aim for a perfect solution from the beginning Read more
Full-Stack Testing with Rails System Tests
Rails 5.1 is on its way, and with it, developers will finally have access to Capybara-based system tests right out of the box. Users of Rails integration tests will receive a major upgrade in functionality, and those who already use Capybara are about to see their lives get a whole lot easier. This post looks at Rails’ approach to system tests and why this should be the thing to finally convince you to start testing your app end-to-end.