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.
Reading Rails - Attribute Methods
In this installment, we’re going to dig into the Rails source and figure out how Rails uses metaprogramming to implement methods like name_changed? for your attributes. [more inside]
Working around RubyMotion's Memory Management Limitations
The memory semantics in Objective-C are not available in RubyMotion, so extra care needs to be taken when dealing with lambdas and cyclical references.
Build a Ruby Gem Email Course - Weekend Update
I just posted my weekend update on launching a Build a Ruby Gem Email Course.
Flickr API wrapper "flickr-objects"
Some time ago I released a, hopefully, stable version of my flickr-objects gem. This is a rewrite of my previous flickrie gem. flickr-objects, instead of dealing with JSON hashes directly, deals with the Flickr API in an object-oriented manner. It is highly configurable, and very easily extendable. Give it a go!
RubyConf Taiwan 2014 is calling for presentation
RubyConf Taiwan 2014 will be held on April 25-26, 2014 in Yang-Ming University, Taipei. If you want to give a presentation at RubyConf Taiwan 2014, please submit your proposal. Any topics related to Ruby are welcomed. [more inside]
Rails Application Layout
I’ve updated the article Rails Application Layout which makes recommendations and offers advice. Comments welcome, especially suggestions for improvement.
New Release of ActionParameter (v0.0.2)
ActionParameter helps you move all your parameter’s logic from controllers into it’s own class. This way you’ll keep your controllers dry and they’ll be easier to test.
Promises/A+ for Ruby
promise.rb is a Ruby implementation of the Promises/A+ spec. 100% mutation coverage, tested on 1.9, 2.0, Rubinius, and JRuby.
An Excersize in Refactoring in Ruby
Today I want to examine one of my favorite refactoring patterns, Extract Method. [more inside]
An Excersize in Refactoring in Ruby
Today I want to examine one of my favorite refactoring patterns, Extract Method. [more inside]
Introduction to Docker for Rubyists
Yesterday I gave a talk at the Vienna.rb meetup about Docker and prepared a little Sinatra/Sidekiq/Redis example. I happily share the slides and the source for fun and feedback.
Migrating Polish Ruby on Rails forum from PunBB to Discourse
Polish RoR community has migrated their main forum from a PHP engine into Discourse. Here’s a migration diary: Migrating Polish Ruby on Rails forum from PunBB to Discourse.
Siphon to power up scopes
Following my post on combining ransack and scopes I wanted to announce Siphon. Somewhere inbetween has_scope and ransack, Siphon enables you to use ActiveRecord scopes in a search form
Fast Rails Tests With Factories
You using fabric(FactoryGirl, Fabrication, Machinist) in your test suite and test takes a few minutes to run. It’s bad. The good news is this article helps to make your test run at least 2x faster without adding anything else. Really, just FactoryGirl & ActiveRecord.
Extracting Immutable Objects
In the last few weeks I’ve been rehabilitating some of the first object-oriented code I wrote in the hopes of bringing my mailing list archive back online. Lately I’ve been refactoring some of the earliest, core code and Extracting Immutable Objects from that mess.
Refactoring ruby using sprout classes
A nice blog post by Jason Swett: Refactoring ruby using sprout classes..
Combining Scopes with a Ransack search
Who hasn’t ever wished to combine Ransack with a scope.
Dependency Sorting in Ruby with TSort
Lawson Kurtz just posted about dependency sorting in Ruby with TSort.
Regular: Rails + Angular
Hi Rails programmers! I have published a gem that makes it easier to use AngularJS from Rails: rg. I have also written a blog post explaining its philosophy!
Rake: File Tasks
We’ve recently posted about using Rake’s File Tasks. Learn how to create them, how they work, and how to use them in a real world scenario.
Build a Ruby Gem Email Course - Week of Hustle - Day 5
I just posted my daily update on launching a Build a Ruby Gem Email Course.