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.
Risk Management and the Development Process
While developing your product, you will encounter several risks that will impede progress and therefore result in lower throughput from your development team. [more inside]
Deploying a Crystal application to Heroku
Crystal is a typed, LLVM compiled language that reads (mostly) as Ruby. It’s a modern language that comes bundled with support for WebSockets, OAuth and other niceties. [more inside]
Dr. Jekyll’s Themes - (Yet Another) Static Site Theme Directory
Hello, I’ve put together (yet another) alternative Jekyll themes site called Dr. Jekyll’s Themes. The site is - of course - powered by Jekyll (using the “new” datafile machinery), see the Source @ GitHub. Questions? Comments? Welcome. Cheers.
Generational Garbage Collection in Python and Ruby
Pat Shaughnessy shows how Garbage Collection works differently in Ruby and Python. [more inside]
Running a Rails Development Environment in Docker
Use your Docker-based infrastructure for development, not just for running tests. Learn how to move simple Rails applications into Docker during development. [more inside]
Importing Data with ROM and Transproc
Here’s a blog post describing how you can import data to a relational database using Ruby Object Mapper and Transproc gems
Opal on Rails: Replacing CoffeeScript with client-side Ruby
Hi, I wrote a blog post about opal and rails. I hope you interested.
@rubycalendar - (Yet Another) Ruby Conference Calendar Alternative
Hello, I’ve started (yet another) Ruby conference calendar alternative. The new @rubycalendar twitter account follows all Ruby conferences (and some meetups) - so far 91 and counting (listed on the planetruby/awesome-events page). I try to retweet new conference announcements from time to time. Follow along. Cheers.
How unicorn talks to nginx – an introduction to unix sockets in Ruby
In this post we start out with the basics of unix sockets and finish by creating our own simple Ruby application server which can be proxied by nginx. http://blog.honeybadger.io/how-unicorn-talks-to-nginx-an-introduction-to-unix-sockets-in-ruby/
How I upgraded my Ruby with Contracts
Make your ruby code safer with Contracts
How to Maintain a Healthy Development Backlog
When building a new product or upgrading software, you need to prioritize your wants and needs and maintain a healthy development backlog. [more inside]
Realtime Twitter Clone Demonstrating Volt Framework Authorization / Authentication
In Episode 9 I build a basic twitter clone to demonstrate how you can use permissions and authorization in Volt apps.
Writing Smart Migrations: References, Reversible, And Indexes
Building a new feature usually means having to restructure the architecture of your application. In other words: writing a lot of migrations to modify your schema. This blog post looks at how to use references, reversible, and indexes to write smart migrations, and make things easier for developing your application in the long run.
Migrating a test suite from RSpec to Minitest
Over the weekend I migrated the test suite of a gem from RSpec to Minitest. Here’s how it went.
What's your Rails default stack?
You could create a custom Rails template that meets your preferences to speed up your setup. Or you can use another stack that’s not an exact match, but get’s the job done.
Creating generators and executables with Thor
Thor is an amazing library for creating generators and executables. It gives you methods for creating and copying files and directories, defining symbolic links, reading remote files, and more. And is the perfect companion for gems that need to generate a project structure, just like Rails. Check it out.
Butter: A modern blog alternative for Rails
Butter is a modern blog alternative to help save companies built on Rails from Wordpress and Tumblr. Butter (also a Heroku add-on) comes packed full of SEO goodness and allows your blog to live on your main domain. [more inside]
JSON-less JSON schemas with rspec
Writing test’s to ensure that your end points and serialiser’s return the correct response can feel cumbersome and verbose. In this article I stand on the shoulder of giants and leverage the beauty of ruby to make Json Schema’s nice to write and work with. Check it out at Pursuit of Clean
Handmade Rails presenters
The presenter pattern is one possible way to move logic from your views into a place where it’s not only better suited, but can also be reused. In this article, I want to offer a lightweight implementation that both explains some specialties when used with Rails helpers and doesn’t need any external dependencies.
awesome-websockets - A collection of Ruby websocket servers @ Planet Ruby
Hello, I’ve started (yet) another awesome list on Planet Ruby. The new awesome-websockets page collects Ruby websocket servers e.g. em-websocket, faye-websocket, actioncable, etc. Anything missing? Contributions welcome. Cheers. PS: You might also check the related awesome-webservers page.
Level-up `rescue` with dynamic exception matchers
When you use a rescue clause in Ruby, you can specify what kinds of exceptions you want to rescue. But what if you want to rescue exceptions by severity? By message? By time of day? In this post we’ll discuss how you can create dynamic exception matchers that use your logic to decide if an exception gets rescued. http://blog.honeybadger.io/level-up-ruby-rescue-with-dynamic-exception-matchers/
Xorcist
Blazing-fast-cross-platform-monkey-patch-free string XOR. Yes, that means JRuby too.
Enumerated Types with ActiveRecord and PostgreSQL
A walkthrough of how to integrate ActiveRecord::Enum with PostgreSQL Enumerated Types, and get the best of both worlds. more.
Debugging your Ruby Programs
When your code is not working it’s time to start debugging ruby. In this tutorial you will learn a variety of techniques to help you find the problem.
Bringing the best of Bash scripting to Ruby
I just published a post about using Ruby in place of Bash for scripting with the aid of the docopt and scriptster gems. Check it out here.