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.
An email course about Rake
I’ve just launched a 4 days FREE email course about Rake. If you are interested please sign up on this page: The 4 days Rake Guide.
Write Your Git Hooks in Ruby (with Ruby Git Hooks)
Remember the last time you accidentally checked in a gigantic file you didn’t mean to, and had to dig through the Git history for it? And everybody had to update their history and that one guy accidentally blew away all his changes? Read more
Preview emails for any user with Rails 4.1
I just posted Preview emails for any user with Rails 4.1, explaining how to have a custom ActionMailer preview for every user of your system.
Time comparison in Ruby
Good to know how Ruby compares Time
Paginating Database Results In Rails Active Record
Paginating database results is a standard feature of most web applications, yet isn’t something you’d want to necessarily implement on your own. Fortunately, Rails developers have a whole host of options at their disposal, including the will_paginate gem. This post shows you how to easily integrate will_paginate into your Rails application. Read the post.
Start using refinements now!
I just updated the zucker core extension library and it is now completely based on refinements. It is organized in very small units and playing around with it is a great way to get familiar with Ruby’s new refinements!
Announcing 2014 Burlington Ruby Conference Speakers
I’m excited to announce that our full speaker lineup is now on our website! We have 13 awesome speakers joining us this August 2nd & 3rd for a unique, single track conference on the shores of beautiful Lake Champlain in Burlington, Vermont. Read more
Improve your test readability using the xUnit structure
TL;DR: test quality is not just about verifying correctly whether your code works, it’s also about making your test easy to read and understand. Read more
Introducing early version of Fourchette: test PR against a fork of your Heroku app
I just launched an early version of Fourchette and would love if you could try it. What is Fourchette? If you use Heroku and GitHub, look at my post…
Hey Rubygems, do not include your stuff implicitly (and don't class_eval Class!)
I just posted a small (rant-ish) post for Rubygems author, mainly! ;)
ActiveModel::Serializers - MetaCasts.tv*
In this episode we will use TDD to write a custom JSON serializer using ActiveModel::Serializers. We’ll learn about how to use scope to determine which attributes to serialize. We’ll also look at some of the changes in the forth coming 0.9.0 release, including breaking changes around using URL helpers in a serializer. Read more
New version of Macros4Cuke gem
The macros4cuke gem, is a Cucumber extension that allows you to define your own custom steps without programming has reached version 0.5. Give it a try: its installation is simpler than ever…
How to improve your software design with code that feels wrong
You know what you want to do, but your code just isn’t cooperating. Maybe it has a few too many levels of indentation, or chains a half dozen methods, or looks asymmetrical. Whatever it is, something just feels off. You could ignore it – I mean, you have a backlog full of features you still want to write, and it’s really not that bad. But that would be a mistake: Your code is trying to tell you something, and you don’t want to miss it.
Rails API Course on Code School
Code School launched a Rails API course covering how to build and test REST APIs.
Rails 4, Strong Parameters, and Deprecation of the attr_accessible Macro
The attr_accessible macro has long been a Rails mainstay, playing a major role in preventing malicious access of sensitive model attributes. However it (and its sibling attr_protected) was deprecated in Rails 4 in preference of a new approach known as “strong parameters”. In the latest Easy Active Record blog entry I introduce strong parameters, explaining why attr_accessible was inconvenient and demonstrating the advantages gained by the new strong parameters approach.
Better way to organize and maintain your Rails helpers
better_helpers is a rubygem that provides a simple pattern to keep your helpers scoped, avoiding conflicts in the global namespace.
Make Your Life Easier With The Open Source Gem for Dokku
Make Your Life Easier With The Open Source Gem for Dokku (Dokku Client for rails project with preinstalled dokku plugins.)
Terminal colours made simple
On Sunday, I released a small side-project of mine, a gem called tco. It’s a tool to simplify colouring things in the terminal. The main feature of it is the way it works with colours. Instead of an oddly organised sequence of colour codes, tco simply works with RGB. It provides a library for your Ruby gems and apps, and also a standalone command-line tool that you can use anywhere else. Read more
Heroku Subletting - Share the cloud
Today we’re announcing Heroku Subletting. A great new way to share the cost and resources of multiple Heroku Performance Dynos. Read more
A quick script to back up your code from heroku
You can already mirror github so why not Heroku, too?
A look at MetaCasts.tv episode stats
Just over year after launching MetaCasts.tv I took a look at some of the more interesting stats on MetaCasts.tv Episodes. Read more
eBook with iOS app source code and backend Rails app source code
iOS on Rails is a book for anyone with some Rails experience and little or no iOS experience. Read more
MagmaConf 2014 Early Bird Tickets Almost Sold Out
MagmaConf 2014</a href> takes place this June 4, 5 and 6 in beautiful Manzanillo, Mexico; and our Early Bird discount tickets are going fast! Don’t miss out on your chance to attend Mexico’s premier web development conference. We’ve got some great speakers lined up including Sandi Metz, Desi McAdam, and Fred George (check out the full line up here</a href>). We’ve also got your amazing beach side room all made up just for you, so make sure to book your room at Magma Village</a href> before it’s too late!
Wicked Good Ruby Conf RFP is Open!
Boston’s 2nd annual Ruby Conference’s RFP is open. We are also looking for sponsors.
How Can I Make Ruby Not Compile Gems on Every Machine?
A lot of folks wonder, “how do you deploy Ruby in a commercial environment with strong stability requirements?” Read more