RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Introduction to ActiveRecord and ActiveModel Attributes API

Rails 5.0 is without a doubt a great release with plenty of useful changes and additions. The most notable change was probably ActionCable - the layer responsible for integrating your app with websockets. However, there were also other additions that could bring some substantial improvements to your Rails apps, but were a bit outshined by bigger changes. One of such features is Attributes API. [Read more]

How to Easily Configure and Run Multiple Rails Apps Locally

This post shows how I tackled the issue with running multiple apps that have conflicting services (notably, Sidekiq and Redis). Sometimes while you’re developing Rails apps, especially microservice architectures, you need to be able to run multiple apps on your development machine. Read on to see how I quickly and easily solved that problem using Foreman and a few configuration changes. [more inside]

flexible_permissions gem is out for flexible Ruby APIs!

For building APIs (and not only) I have been using Pundit gem for years. It’s an awesome gem. However there is a tiny issue: Pundit has a black and white policy whereas in APIs usually you need a grayscale. The user might have access to a specific resource/action, but only in certain attributes of that resource. That’s why flexible_permissions was born: a successful pattern I have been using for a couple years now is wrapped in a gem! Checkout the github page for more info!

A Step-by-Step Guide to Debugging SJR Templates

SJR is a double edged sword in that it’s awesome when it works, but can be a nightmare to debug if it doesn’t. Over time I’ve developed a sort of systematic approach to debugging SJR templates that I use to track down mistakes in the template and stay on SJR’s good side. I shared my technique (along with a cheat sheet PDF) in my latest blog post… http://www.carlosramireziii.com/a-step-by-step-guide-to-debugging-sjr-templates.html

Improving RubyFlow: What Features Do You Want?

Hi folks, we’re going to spend some time soon to improve RubyFlow and have noticed a few common feature requests. The most popular is probably adding a “report” or flagging button so we can take down spam/junk links - so we’ll be getting that rolled out. But what else would you be keen to see? [more inside]

Edit/Delete comments; 2. Search (NOTE: “rubyflow TERM” works like a charm i…
Button to pull updated profile photos from Github. Thanks again for the awesome…
I’d like the report/flag feature to be available for comments as well.
I’d like to see Stack Overflow Q&A, for fluffier topics. E.g. what Ruby fra…

Go Full Stack Rails - The Frontend part 2

This is the follow-up to a series covering the development of a clean, maintainable and well-tested full-stack application with Rails and ES6. In this post, we cover “Promises” in the context of the provided example application. There’s also some discussion around how to improve promise-based tests and tips for running JavaScript specs with code42template. We also have three other posts available: The Backend: part 1, The Backend: part 2, and The Frontend: part 1.

Loading older posts