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.

Quick Tips for adding a REST API to a Rails Application

Rails projects typically start out fairly simple, but evolve into more complex applications over time. In order to add a client-side framework or mobile application, creating a REST API might be necessary. It’s really straightforward to create a new Rails API. However, it might be easier to add an API to an existing project. There is “right” way to do this, but there are some things to keep in mind that can make future development a bit easier. Full blog post here: https://era86.github.io/2020/12/09/quick-tips-for-adding-a-rest-api-to-a-rails-application.html

Asynchronous Image Processing in Ruby on Rails with Shrine

As Ruby on Rails developers, we often encounter the need to upload and store images provided by our users. Often these images need to be resized and saved as multiple versions: for mobile, web, thumbnails, OG images, and other custom and non-standard formats needed by the Client. What problem does it lead to? Image processing is a computationally intensive operation and the latency will inevitably drop. Solution? Sidekiq + Shrine! Asynchronous Image Processing in Ruby on Rails with Shrine

Using Docker on Apple silicon with a remote Docker engine

Not strictly Ruby, but many Ruby developers use Docker. I wrote a post on using a remote Docker engine on the new Apple silicon Macs while we wait for official support. The post also covers a workaround for bind mounts which otherwise don’t work with a remote Docker engine. I have been working with this setup for a couple of days now and I barely notice the difference compared to a normal Docker setup. Hope it’s useful to others too. [more inside]

Loading older posts