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.
meet zchannel.rb
zchannel provides a high level and easy to use API for sending objects between Ruby processes.
Basic design patterns in Ruby on Rails
I’ve chosen two design patterns I found the most common in Rails world and described them:
Rubinius takes the fun out of Ruby
A great read by Brian Shirai on how objects should be used for interactions and… functions should be used for data. [more inside]
The Ruby Community and Reputation
There’s been a lot of ranting recently. I’ve posted about in my “Elephant in the Room” post a few months ago, this is my conclusion and possibly last post about this subject.
How To Do A Case Or Switch Statement In SQL And Rails
This article describes the SQL case statement and how to use it in Rails.
New framework defaults in Rails 5 to make upgrade easier
To make the upgrade process easier, Rails 5 has added feature flags for all of the breaking changes, Read more about it in the blog post : [more inside]
field based authorization using cancancan
Blog post about a way to utilize cancancan to provide a field based authorization.
How to deploy Refinery CMS on Heroku
We have recently updated the guide to install and deploy a Refinery application on the Heroku hosting platform: Refinery CMS Heroku guide
Minitest Cheat Sheet
This cheat sheet is for novice programmers (or more experienced developers with poor memories) and includes a basic reference to core Minitest syntax as well as assertions and Minitest::Spec expectations with simple code examples. (Free PDF, no email signup required.)
HOWTO scrape websites with Ruby & Watir
Tutorial showing you how to scrape websites with Ruby and the Watir gem. Watir is powered by Selenium, which means that unlike Mechanize you can use it to interact with JavaScript!
Spy vs Double vs Instance Double in RSpec
Understand the important differences between them and when to use them.
Oprah: Opinionated presenters for Rails 5 - without the cruft
A new, lightweight but powerful presenter library for Rails 5. More information on the GitHub repository
Rails 5 allows wildcard for specifying template dependencies for cache digests
We can now use wildcard for adding all template dependencies from a directory rather than adding files one by one for cache digests. [more inside]
Why / How I Learn New Technology - Lab Report [001]
In the first episode of the lab report I show you the research I’ve been working on for the past month. I dig into why I do research and how I develop solutions from my research. As an example I will show you the solution I built using React / Webpack / Javascript, to solve a problem I have on Codemy.
Blogging with Markdown, Dropbox and Rails
The story & tech stack behind the new version of my site
My Rails Models Are Bloated. Should I Use Concerns?
This is a question that I’ve seen asked a couple of times: My Rails Models Are Bloated. Should I Use Concerns? [more inside]
Testing Rails Applications
A roadmap for testing rails applications
dry-rb.org - Introducing dry-system
Learn about a new way of organizing application’s code with the new release of dry-system. See the official announcement!
[Screencast] FullCalendar Events and Scheduling
Learn how to incorporate FullCalendar into your Ruby on Rails application with listing and creating events. Using unobtrusive javascript, we can create a fast interactive calendar. https://www.driftingruby.com/episodes/fullcalendar-events-and-scheduling
Creating a trashing concern in rails 5
Softly destroy records across multiple models from a single concern
Rails Composer Introduction
This week’s screencast from Fullstack Videos shows how to use Rails Composer. Rails Composer is a popular tool for generating starter applications.
Rails and Webpack: No Gem Required
Integrating Rails with Node.js-based asset pipeline doesn’t mean you have to use another gem to connect these components. In the post, I share some approaches and helpers that helped me integrate Webpack into existing Rails app and smoothly deploy the assets to Heroku.
The Upgrade Trails
Tales from multi-year Rails upgrades at Code School, sprinkled with bits of hindsight.
PostgreSQL and Rails
PostgreSQL and Rails shows some features that make this combination so powerful.
Advanced SQL in Rails - Part 2
I wrote a blog post recently covering advanced SQL functions like windows and views. In the follow-up, I discuss how to integrate those into Rails. [more inside]