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.
active_storage + validations
this gem is to add validations in Rails models without custom validations. [more inside]
Lets keep our ‘Promise’ in Ruby
Though Ruby world is not new to ‘async’, there are many famous libraries in Ruby which are event-driven like eventmachine and celluloid but ‘async’ is not as main stream in Ruby as it is in other communities like Node.js is quite popular in JavaScript world and RxJava is new hot topic in Android eco system.
Connecting to the Apple Music API from a Ruby (on Rails) application
I explain how I connect to the Apple Music API with Ruby and the JWT gem
Running DAG-based workflows using multiple processes, in Ruby
The Jongleur gem is a process scheduler and manager. It allows users to declare a number of executable tasks as Ruby classes, define precedence between those tasks and run each task as a separate process. [more inside]
exists? and blank? under the hood
Should I use exists? or blank? To answer this question we will unpack ActiveRecord and put exists? and blank? methods under the scope. [more inside]
Resolving Rails schema.rb conflicts properly
Schema.rb conflicts can often confuse us. A couple of strategies for handling them, and some general migration tips – Resolving Schema.rb Conflicts Properly
eCommerce Companies Using Rails
What eCommerce companies use Ruby on Rails? We put together a list including Glossier, Inc., BARK, Greetabl, and more.
if you using spring+rspec this is for your
if you want to re-run specs you need to add “bin/” before “rspec” command. [more inside]
Is Rails still relevant in 2018 ?
Few days ago I’ve received email where I was asked for an advice from a web developer who was considering switching from Ruby to something else. I was asked in the email: [more inside]
The autoload method in Ruby
In this article we’re going to explore the following topics:
Rails Console Magic Tricks
Seven techniques to improve a developer’s experience during a Rails Console session.
Testing APIs in Ruby: An overview
A couple of different methods to test APIs with RSpec. Describes WebMock, VCR, and building a custom fake server.
Discover Rails: Active Record
This article is about how to make your own ActiveRecord gem. Follow the article, I will introduce how to make this gem step by step. From building the gem to testing the feature of rspec. Hope you are interesting in this topic!
Best image uploader for Rails — Revisited
Three years ago I wrote about how to choose the right uploader gem for your project. Since the time the original article has been published, all mentioned libraries got updated, one got deprecated, and two new libraries have appeared. I feel it’s time to revisit this topic.
Rails on Docker: Using an Entrypoint File in your Containers
A quick tutorial post describing how to use an entrypoint file to avoid “...server already running. Check tmp/pids/server.pid.” (and other issues) when developing and scaling Rails apps in Docker containers. https://www.chrisblunt.com/rails-on-docker-using-an-entrypoint-file-containers/
Doorkeeper 5.0.0 released
Doorkeeper, the OAuth 2 / OpenID provider for Ruby on Rails and Grape applications, is released under 5.0.0 major version with a bunch of new features and bugfixes: API mode, PKCE flow, Public/Private clients, request hooks, Rake tasks for tokens management, improved configuration options and more.
Protecting a Rails App with Passenger and Nginx
Explaining the complete process of password protecting your website with Passenger and Nginx @ Protecting a Rails App with Passenger and Nginx
Replr: A single line REPL for your favorite languages & libraries.
Built on top of Docker, Replr is an easy way to get a REPL with your favourite language stack. Supports Ruby & gems to start! [more inside]
EuRuKo (European Ruby Konference) 2018 @ Vienna (Austria) - 24+25th/Aug - Live Stream
Hello, the EuRuKo 2018 just kicked off this morning in Vienna, Austria. Big thanks to Ramón Huidobro (@SenorHuidobro), Super Princess Pilar (@Tamacodechi) and the org team for making in happen. Follow along with the EuRuKo 2018 live stream on YouTube for all talks!. Cheers. Prost.
Rails Rspec 3 View Test Examples
I use Rspec View for testing required html tags, required partial, or conditional in html. Here are some examples View specs with Rspec 3.7
ignored_removed_columns gem: Find removed or typo columns defined in ignored_columns
Have you forgot to delete ignored_columns in rails model after the column dropped? Or have you made a typo in ignored_columns? This gem finds unused ignored_columns. [more inside]
Eager loading polymorphic associations
Explaining how to deal with eager loading polymorphic associations as includes doesn’t work as expected: