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.
Crash Course on Modern Web Development: Rails Edition
Just updated my Ruby and Rails based guide to modern web development with updated resources and explanations. Looking for feedback, comment away!
Verse 0.3 release
New verse adds padding transformation and line breaks sanitizer.
Tracing Ruby code
What’s your strategy for digging into external library source code? Here’s my try: Tracing Ruby code.
Search pages on a single segment without querystrings
Isn’t /mid-range-contemporary-gray-decks better then /search%5B%5D=mid range&search%5B%5D=contemporary [more inside]
Upcoming SecCasts Live: Rails Vulnerabilities
nVisium is doing its first Rails-focused SecCasts Live in two (live, of course) sessions on March 18th. Ken Johnson will present the top 3 most dangerous issues we regularly encounter in Rails applications along with steps to fix your applications. Registration is free and encouraged to take part in the live Q&A, but the recording of the session will be available later at SecCasts.
Test JSON documents with RSpec
I tried different approaches… and the best for me is to use json-schema and the RSpec matcher I’ve pushed as a gem match_json. Give it a try and let me know your thoughts.
Decruft your Rails filters with the FilterDecrufter
Rails won’t warn you if a before_filter references an action that no longer exists, but the FilterDecrufter will!
Value Assignment and Deferment with Lambdas/Procs
A simple look at variables assigning value, or defered execution. http://6ftdan.com/allyourdev/2015/02/27/value-assignment-and-deferment-with-lambdasprocs/
'Modular Rails' released - Learn how to build modular applications!
I just released the book I’ve been working on for the past months: Modular Rails! It shows you how to build modular applications by using Rails engines and encapsulate them as gems.
Comprehensive Style Guide for Ruby
As you probably know Bozhidar Batsov is working on a Style Guide for the Ruby language with contributions by numerous Rubyists. [more inside]
Why blocks make Ruby methods 439% slower
You’ve probably never thought about the performance differences between blocks and yielding, but it’s dramatic. This article explains why blocks are so much slower by going directly to the MRI source code.
Find_each: get your data efficiently [Spanish]
Do you know what is find_each? No? This method can help you to access your data efficiently. Visit this article and start to improve your queries in big tables. Full article. Enjoy!
Service objects in Rails
Details and different way of implementing them; http://cored.github.io/blog/2015/02/26/service-objects-in-rails/
The simple but powerful Ruby Struct
An overview and some use-cases for the Struct and OpenStruct classes.
Gem of the Week #9 - state_machine(s) gem - model processes with finite state machine
Hello, over at the Planet Ruby the Gem of the Week series continues with #9 - state_machine(s) gem that lets you model processes and work flows with finite state machines (FSM) and automata theory on any class and attribute in Ruby. Full article. Cheers.
Using the Sucker Punch Ruby Gem to Cache Stripe Data in Rails
Here’s a new post on Using the Sucker Punch Ruby Gem to Cache Stripe Data in Rails. Hope you enjoy!
The Sorrows of Young Developer
Yesterday I was like inspired, and I wrote a short tale named The Sorrows of Young Developer. It’s about a young passionate developer that is working in this world of continuous feature changes, agile, etc.
Disable the Capistrano Stats Prompt Manually.
Since not every build tool uses a non-tty method of deployment, the Capistrano deploy will fail. This behaviour is undocumented at the moment, and requires a manual workaround. This post details how to disable the prompt, as well as how this could be found. I think this is one of the biggest advantages of open source, the ability to look through the source code to find answers to you problems.
Video Tutorial: Introduction to Ansible for Rails Apps
This tutorial gives an introduction to Ansible for server configuration. This is the first lesson in a course that shows you how to use Ansible for server configuration of a Ruby on Rails app.
A new Article Series for Ruby/Rails Developers – Join the Nuts & Bolts List
I wrote a few Ruby/Rails articles over the last couple of months and want to extend this. That’s why I created a Nuts & Bolts area where I’ll publish about 2 articles a month. [more inside]
Using ECMAScript 6 with Rails 4.2 Projects
Babel is a JavaScript transpiler that turns your ES6+ code into ES5 friendly code. Learn how to use ECMAScript 6 with your Rails 4.2 projects with the help of Sprockets and Babel.