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.
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
Building a Rack Web Server in Ruby
Every request that is sent to a Rails or Sinatra application goes through Rack. Rack is an interface for structuring web applications using Ruby. Rack web servers (i.e. Puma, Passenger, etc) handle sockets (links between programs running on a network), the semantics of the HTTP protocol, thread or process management, and of course the Rack interface. This article explores building a simple Rack web server in Ruby from scratch. Read more
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. Read more
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.
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
Bridge and torch problem solver
The bridge and torch problem (also known as The Midnight Train and Dangerous crossing) is a logic puzzle that deals with four people, a bridge and a torch. It is one of the category of river crossing puzzles, where a number of objects must move across a river, with some constraints. Read more
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 -
Examples of rails apps
Hey, we’ve just completed a catalog of web apps built with Ruby on Rails: 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:
Liquid water pouring puzzles solver
Water pouring puzzles (also called water jug problems or measuring puzzles) are a class of puzzle involving a finite collection of water jugs of known integer capacities (in terms of a liquid measure such as liters or gallons). Initially each jug contains a known integer volume of liquid, not necessarily equal to its capacity. Puzzles of this type ask how many steps of pouring water from one jug to another (until either one jug becomes empty or the other becomes full) are needed to reach a goal state, specified in terms of the volume of liquid that must be present in some jug or jugs. Read more
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. Read more
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. Read more
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.