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.
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.
Notes On Sane Monkey-patching
Here are (semi)random notes, trying to outline a system of views on controversional “monkey-patching” topic—the views I myself consider sane and reasonable. It may seem other way for you, but it could be a start for rational discussion. (discuss on reddit)
Using Phoenix with Legacy Rails Applications
Wrote a blog post about how to leverage the power of Elixir and Phoenix in your existing legacy Rails applications today. Read it Here.
Embrace your inner Project Manager
Wrote a blog post about the skills an engineer needs to manage their own Technical Upgrades
Minitest Cheat Sheet
This Minitest cheat sheet covers basic test structure, the default assertions, class-level options, and writing custom assertions.
Rails Dev. Environment based on Vagrant, VirtualBox and Ubuntu 16.04
Check out this Ruby/Rails Development Environment based on Vagrant, VirtualBox and Ubuntu 16.04 (Xenial Xerus). Tested on Windows and Ubuntu 16.04 hosts, should also work on OSX hosts.
Thoughts on Templates and Helpers
Wrote a few thoughts regarding templates and usage of helpers. Always appreciate other viewpoints.
How To Determine If An Array Contains Any Value From Another Array In Ruby
Quick tip on a couple methods to determine the interference of two arrays. https://solidfoundationwebdev.com/blog/posts/how-to-determine-if-an-array-contains-any-value-from-another-array-in-ruby
Rubocop for your favorite text editor
Have you ever wondered if your favorite code editor examines your Ruby code just like rubocop gem does ? [more inside]