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.
Opalist Newsletter - Issue #4
Opalist is an e-mail newsletter showcasing the latest news and tutorials in the Opal (Ruby-to-JS source compiler) ecosystem and cutting-edge front-end development. In our fourth issue, we cover a bunch of news in the world of Opal gems as well as a great screencast showing how to build highly-interactive apps via Volt.
Ruby Hash default_proc
A quick post about the Hash default_proc. What is it good for, a quick trick and a caveat! Read it here
Don't "Use" Protected Methods in Ruby
I’ve just published an article on protected methods in Ruby. In this article, I discuss a proper usage of protected methods and try to shed some light on when they’re appropriate via an easy-to-understand example.
acts_as_localized: When Globalize is an overkill
Super simple way to handle translations for AR Models [more inside]
InfraRuby 3.7 statically typed Ruby compiler released!
InfraRuby is a compiler and runtime for statically typed Ruby.
Getting started with AlchemyCMS
AlchemyCMS looks like the perfect CMS in terms of it’s architecture and flexibility. It’s the best way to give your users freedom of changing page content while keeping everything under control in terms of structure and design. You don’t have to worry about your users messing up the view because they’re lacking the technical skills to write proper html/css. Read more
JSON Schema Basics
Learn about the basics of JSON Schema and how to validate data using JSON Schema.
Rails’ HashWithIndifferentAccess
Rails offers a less error prone Hash collection type along with added some additional methods for convenience.
Top 6 Ruby Links for the week May 21, 2015
Top 6 Ruby Links for the week May 21, 2015.
One more useful abstraction for Rails - My take on Form objects
Just wrote a blog post about Form objects on rails, please enjoy:
How to simplify Active Record scopes that reference other models
I wrote a post about how I’ve been simplifying my Active Record scopes that reference other models.
An introduction to Swift for Ruby Developers
In this article I outline several interesting features of Swift and compare them with the equivalent features in Ruby.
RocketConf Amsterdam - Call for Proposals
RocketConf Amsterdam is a three day conference for modern web developers and dev ops. The call for proposals is open now! Also, there are a few early bird tickets left. Read more at http://www.rocketconf.eu
Episode 3: Understanding Volt Views and Tags
This week’s screencast is a quick overview of how views, tags and controllers relate to each other in the Volt framework. I build a very simple card guessing game that exposes most of Volt’s view layer features.
libgrader: Find quality gems for your next project.
Libgrader helps you find documented, actively maintained gems. Similar to Ruby Toolbox and Awesome Ruby, libgrader can help you choose the right gems to integrate with by highlighting the gem’s license, dependencies, documentation, upkeep, activity, alternatives, and more. (Created by Aaron Lasseigne.)
Beautiful Ruby, convenient Rails
In this blog post I want to reflect on things which make Ruby a beautiful language to read and write, and on things which make Ruby on Rails a convenient tool to quickly prototype.
Why Ruby?
I love Ruby as a language, it makes a lot of things easier and the rest of things pleasant. I talk about some of those things in Why ruby?
Get started with the Sequel gem
I’ve published a screencast and article on using the awesome Sequel gem to work with databases. Enjoy!
Ruby & Rails Cool stuff & tips - S15E01
I just published some tips for Ruby & Rails.
What is Ruby DSL
An overview of DSL and some suggestions.
Introducing the Passenger Status Service for Heroku
The newly launched Passenger Status Service makes Passenger status reports (the passenger-status tool) work on Heroku. Read the announcement here.
Recursion in Ruby
Exploring different ways to solve problems recursively in Ruby: Sum, Map, Factorials, Fibonacci, Reduce, comparing iterative solutions to their recursive counterparts.
With so much Rails to learn, where do you start?
Have you seen the Rails Competency Chart? It’s frightening how much you have to know, but it’s accurate. If anything, it’s missing things. So how do you learn everything you need without having started 5 years ago?
The Secret Life of Your Database, Part 2: Join Tables
When it comes to databases, there’s two schools of thought: those who hate them, and those who love them. Databases can be complicated, especially when you try to query for data from different tables! This blog post explores the secret life of your database using join tables, and includes some cool SQL queries and diagrams to boot!
How to Use Capistrano to Deploy a Rails Application to a Puma Server
Setting up Capistrano to deploy your Rails app for the first time is usually challenging. This article walks you through the process of setting up Capistrano to deploy to a Puma web server. Puma is currently the recommended Ruby web server on Heroku.