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.
Managing Login Passwords for Capybara with Minitest and Rails Fixtures
I wrote a new post on Managing Login Passwords for Capybara with Minitest and Rails Fixtures. Hope you enjoy!
Improve Rails performance by adding a few gems
Working with Rails for some time you start nitpicking on how to improve it. This is a first in the series of articles regarding on how to improve (even marginally) Rails’s performance.
Simplify your Ruby code with the Robustness Principle
Your current_user method returns a User, except when there is no user and it returns nil. A search method returns an Array of results, unless there’s only one result, and it returns just that result instead. Seems reasonable, right? Maybe even convenient! But soon, these decisions will bury your code under a mountain of if statements. There is a way to prevent this, though, and all it takes is a little thoughtfulness.
Keep Ruby Weird: A brand new Conf in Austin Texas
Austin is our home and it’s at the heart of how we live and write software. Known for it’s eclectic attitude, the city maintains the unofficial motto: “Keep Austin Weird’. The people are friendly, accepting of artistic and individual expression, lending the city a vibrant and progressive energy. We believe that as developers we grow stronger through play and exploration of our craft. In Austin, this belief is strengthened and supported as we see companies care as much about personal growth as their bottom lines. We wanted to throw a conference that feels like Austin, while taking the opportunity to show off what it is that makes our city great. We present to you Keep Ruby Weird
MetaRuby - Calling and Receiving Methods
Take a look at one of the more popular facets of metaprogramming today, calling and receiving methods using send and method_missing. [more inside]
Lit - I18n web interface for Rails
I wrote short introduction to Lit - mountable as engine web interface for your translations. Lit is of course open sourced on GitHub - new features are more than welcome.
TDD Antipatterns: The Free Ride
Inspired a by Stack Overflow thread, I discuss helping yourself by avoiding test case clutter.
Introduction to the N+1 Problem - Codemy
In this ~8 minute episode we introduce you to the N+1 Problem.
Introducing Lotus
Lotus is a complete web framework for Ruby with a strong emphasis on object oriented design and testability. If you use it, you employ less DSLs and more objects, zero monkey-patching, separation of concerns between MVC layers. Each library is designed to be small, fast and testable. [more inside]
rack-secure-upload 0.1.2 release!
I just released rack-secure-upload. You can reject malicious files uploaded by user!
Animating with ease! Using CALayer for Animations in RubyMotion.
Working with UIKit and AppKit is common place when you’re working with RubyMotion, but sometimes it’s good to drop down a layer (or should I say CALayer), and interact with something else. CALayer is a great class to work with, especially when it comes to animating properties, because it does it all automatically for you. Watch this episode and see how to take advantage of this awesome class. [more inside]
Useful Tips from Eileen Uchitelle for Working with Active Record
Eileen Uchitelle, a Lead Developer at Phishme, gave a very interesting and informative talk at Ruby Nation this past weekend. The talk focused on how problems can arise when developers make the assumption that Active Record knows best instead of understanding how its methods translate into MySQL. [more inside]
FiniteMachine 0.8.0 release!
I’ve released another version of finite_machine which sports few changes, the most notable introduction of choice pseudostate. I’m looking forward to your feedback to make this state machine awesome one!
Threading in Ruby: How and What to Watch For
A quick four-minute screencast about threads in Ruby. The code, the reasons to use threading, limitations, the gotchas.
Array#map and Multiple Assignments - Codemy
We show you how to use the Array#map and Multiple Assignments to help clean up some code ~ 6 Minute Video
Ruby programmer - why Y U no code quality?
Few words about documentation, code quality and costs that you can have, when you don’t care about stuff like this. More in my article: Ruby programmers/project managers/CEOs Y U NO enforce code quality?
MongoDB Rescue Operation for Rails Composer
Some developers have said they really want to restore the MongoDB/Mongoid option to Rails Composer. If that’s you, consider joining a MongoDB Rescue Operation for Rails Composer.
Create a gem - a step by step tutorial for beginners
As the intro states “Every RoR developer will have to modify a gem at least once in his or her career, but not everybody has actually created a gem.” This handy tutorial wants to change it Creating a GEM - a step by step tutorial.
Formnestic - An extension of Formtastic form builder to help building nested and association
I have released formnestic open-source gem (Formtastic extension) for Rails that is going to help a lot on building nested model form with table form style, adding/removing ability, etc.. Check it out! You can also grab the source code on Github if you wish to.
Variants with Ruby on Rails
We explain a new feature in Rails 4.1: Action Pack variants.
Bundler 1.6.3 now available - faster gem resolution
We have updated all environments to Bundler 1.6.3. [more inside]
Dress Up Your Minitest Output
Hacking Minitest output for fun and profit: http://chriskottom.com/blog/2014/06/dress-up-your-minitest-output/
Setting up Ruby in OSX Yosemite - Codemy
We show you how to setup ruby for development on OSX in a ~ 5 minute video.
i18n-tasks v0.4.5
i18n-tasks v0.4.5 has just been released. The gem helps you find and manage missing and unused translations. It has gone a long way since the first release in Oct 2013, and supports a number of features that can save you lots of time: [more inside]
Scriptable Laptop Setup for an Awesome Development Environment
Don’t manually setup your new laptop with a series of copy-and-pasted steps from some blog post. Leverage automation and the open source community to save time and get a more stable result.