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.
Model Tests in Rails 5
The twelfth episode of Railscast is now updated to Rails 5 as a blog post. Learn how to write Model Tests in Rails 5
The Power of Arel
If you’re using Ruby on Rails, chances are you are already familiar with ActiveRecord. If not, ActiveRecord is an Object Relational Mapping (ORM). Under the hood, ActiveRecord uses a relational algebra library called Arel to compose queries for execution. Arel is a very powerful library readily available for when ActiveRecord falls short..
Ruby Bits: Each with object
New series of posts with small but interesting things about #Ruby: https://subvisual.co/blog/posts/74-ruby-bits-each-with-object
How to Custom Devise for Ajax Authentication
In this article, I’ll show you step by step to custom devise which sign in/up by ajax: http://goo.gl/h7kAcW
How to make your next Rails upgrade easier
Here are some thoughts on how to make your next Rails upgrade easier.
Intention vs Implementation in software engineering
These slides illustrate how Feature implementations or even feature requests themselves sometimes confuse the “why” and the “how”. Even if the resulting code works, it makes business logic’s intentions disappear, which costs in both understanding and maintenance.
Instantly import blog posts from Google Docs
Many teams use Google Docs to brainstorm and collaborate on new blog ideas. A common workflow is to draft a blog post in Google Doc, solicit feedback from teammates, and then publish by copying and pasting the contents from the Google Doc into their blog cms. Well copy and paste no more.
Wolfentext3D: Terminal-Based, First-Person Fun in a Single Ruby File
Wolfentext was born out of the need to share a public code sample with a potential recruiter. What better way to do that then to use the best language around and have fun while doing it? Follow along as we pay tribute to the classic 2.5D shooters of yesteryear by creating a fully portable, cross-platform, terminal-based game – one piece at a time, and all contained within a single Ruby file!
Refactoring User Name in Rails 5 App
The tenth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Refactoring User Name in Rails 5 App
The Zen of (Static) Book Designs (w/ Jekyll) - 2016 Edition - Add Your Design / Theme
Hello, I’ve started a new site / series, that is, The Zen of (Static) Book Designs that collects (static) book themes a.k.a. designs (for Jekyll). The first designs in the series include: [more inside]
Kontena selected Black Duck Open Source Rookie of the Year
Kontena - Open Source Container Platform written in Ruby was just selected one of the most outstanding open source projects of 2015 by Black Duck. The 8th annual Black Duck Open Source Rookies of the Year Award recognizes the top new open source projects initiated in the past year. Previous years’ awarded projects include some of the most recognized projects such as Ansible, Cloud Foundry, Docker, OpenShift, and OpenStack among many others. https://github.com/kontena/kontena
swift_client 0.1.3 released
A new version of swift_client, a gem to integrate the openstack swift object store, is out. This release ships support for openstack identity v3 scoped authentication and fixes a bug regarding temporary urls.
Telegram bot. Rails way.
telegram-bot gem is targeted at ease of development, debugging, and testing bots, keeping interfaces minimalistic, easy integration with Rails application, and providing all necessary tools to build a bot. [more inside]
Creating new content types in Rails 4.2
In this short blogpost I describe how to register a new content type in Rails and provide means to parse parameters from it using ActionDispatch::ParamsParser
middleware.
Platform Agnostic Clipboard Access
The clipboard gem just reached version 1.1.0, which added official Cygwin support!
How to squash work-in-progress migrations
Would it be better to have only one migration in place of a few WIP ones you created when working on a feature, that have silly mistakes and correct or cancel out each other? It would, and it is possible.
Persistent storage for your Rails apps with Dokku and Docker
Read how Michiel mounts persistent storage from our host system into our Ruby on Rails Docker containers.
7 Reasons Why Ruby on Rails is Massively Popular Among Developers?
Check out some of the reasons behind the massive popularity of Ruby on Rails among developers to help you make an informed decision whether you should go for it!
Dangers of Model in Rails 5 Session
The thirteenth episode of Railscast is now updated to Rails 5 as a blog post. Learn all about Dangers of Model in Rails 5 Session
Create chat between two models in Rails.
We continue our series of articles about creating messaging system between two models (Reseller and Customer). In Part 3 we’ll install an additional plugin to our conversation, which adds a chat panel. [more inside]
Automate Redis Update on VPS
Learn how to upgrade Redis to 3.0.7 using Moonshine Redis Plugin
tty-spinner v0.2 is out
The new tty-spinner has been totally rewritten to be more flexible and intuitive. The most notable changes to API are introduction of start call for automatic spinning. Stop method now has two specific calls called success and error for marking with check or cross the task completion. You can now listen to spinner events fired for :done, :success and :error states. Also the formatters have grown in number with ability to specify time intervals. see formats section