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.
Getting Started with Minitest
Minitest is a beautifully made test suite for writing tests to verify your expectations from your Ruby code base. Here’s how to run tests in Minitest.
Whirly 😀
Whirly is a simple and colorful, yet customizable terminal spinner library for Ruby. It comes with 17 custom spinners and also includes those from the cli-spinners (npm) project.
Battle of Interpreters: MRI vs JRuby vs Rubinius
Do you know what are the main differences between the different Ruby interpreters? Learn here http://www.blackbytes.info/2016/10/mri-vs-jruby-vs-rubinius/
Brief introduction to internationalization in Rails by @Prograils
Why do we need I18n gem and how it works? How to internationalize and localize your Rails app? You can find some useful hints and tips in this blog post.
Ruby Versions Used in Commercial Projects, 2016 Edition
Every year at Semaphore we have fun crunching the numbers to see which versions of Ruby do people use at work. Here are the latest results.
Rails radio buttons & required boolean attributes
This is a post about using rails radio buttons for required boolean attributes.
Various CORS issues related (not only to) Ruby on Rails
http://www.eq8.eu/blogs/32-various-cors-issues-related-not-only-to-ruby-on-rails CORS may be bit tricky (not only) for Ruby on Rails application. In this article we will have a look on some problems and solutions I’ve dealt with them
Sharing models between Rails Apps
I was planning to write 1 article today and another next week, but heck, I had an extra idle hour. [more inside]
The SQL Alternative to Counter Caches
This article goes over an alternative to counter caches I have been experimenting with lately.
Rails API Basics
A brief introduction on Rails API. Learn how to create an API application and setup the routes. This episode is paving the way for more in depth looks into Rails API. https://www.driftingruby.com/episodes/rails-api-basics
Unobtrusive scripting adapter vs Remotipart
In this short instruction, I would like to share how to use AJAX file upload in Ruby on Rails. Many of web applications require an easy and common way to upload different type data. To solve this issue, Rails has nice Unobtrusive scripting adapter. http://blog.active-bridge.com/unobtrusive-scripting-adapter-vs-remote-part-ajax-file-uploader
Beware the ORM: Locking and joins
This post is mostly an investigation of database locking behavior, specifically what happens when you combine locking and joins. It’s also briefly a response to haters of ORMs like Rails.
Simple Authentication for one user in Rails
In this article we will bulid simple session based authentication for one user for Rails from scratch. http://www.eq8.eu/blogs/31-simple-authentication-for-one-user-in-rails
Adding dynamic content in KMS is now super easy
Just released and published new and the most powerful extension for KMS content management system allowing to create dynamic content (models) on-the-fly. Give it a try - https://github.com/webgradus/kms_models
Examples of rails apps
Hey, we’ve just completed a catalog of web apps built with Ruby on Rails: https://rails-apps.com/ It already has some good examples of Rails apps but feel free to submit other apps if you think they are a great example of what RoR is capable of.
Rails and DynamoDB How To
In this walkthough I will show you how to save data in a NoSQL database like Amazon DynamoDB, using Ruby on Rails framework. To make this example as useful as possible I’ve created the project using the following steps: 1. created a new rails application and a NoSQL database in Amazon DynamoDB 2. included the aws-sdk gem 3. created a config file with the credentials 4. implemented a method that connects to the DynamoDB table 5. created a form and processing data in POST More: https://assist-software.net/snippets/how-save-data-amazon-dynamodb-using-ruby-on-rails
find vs exists?
How about if we try to find a document with the given criteria in Mongoid but it was not found and an error got raised? We just wanted to the return to be either true or false. We should not change any configuration, instead we should change our query itself. Lets find out. [more inside]
45 Ruby Blogs
45 Ruby Blogs On Honeypot, Ruby is the second most popular language, following JavaScript. Ruby is part of our own tech stack and the following list is an ode to Matz and our favourite Ruby blogs, forums and newsletters.
London Ruby Unconference Registration Now Open (Oct 22)
Get your ticket for this event taking place on Saturday, Oct 22, 2016 in Holborn, London, Uk. [more inside]
Karafka framework - Ruby + Kafka made easier
Karafka provides a higher-level abstraction for building Ruby Apache Kafka based applications. Instead of focusing on single topic consumption, it provides developers with a set of tools that are dedicated for building multi-topic applications similarly to how Rails applications are being built. You can read more about Karafka here: Karafka (Ruby + Kafka framework) 0.5.0 release details
Concurrency in Ruby 3 with Guilds
After reading and watching Koichi Sasada’s proposal for Guilds in Ruby 3 at Ruby Kaigi earlier this month, I decided to try to summarize his proposal in a blog post to help everyone understand the concept.