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.
Integrate Magnolia CMS with Ruby on Rails using a document based HTTP API
My name is Daniel Trierweiler and I work for a german digital advertising agency. We have developed a library in order to integrate Magnolia CMS within a Ruby on Rails application using a document based HTTP API. [more inside]
Build forms with Form Builder
I just wrote an article about how to subclass the default form builder to create complex and structured forms. [more inside]
Svitla Ruby Conference Kyiv, 31 MAY - 1 June 2014
In May 31 - June 1 Kiev will host the second RubyC conference, dedicated to Ruby and Ruby on Rails [more inside]
Surviving APIs with Rails - Code School
Code School just launched a new course covering how to build and test REST APIs with Rails. The first level of the course is free, if you’re interested in checking it out.
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? [more inside]
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.
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. [more inside]
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. [more inside]
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…
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. [more inside]
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. [more inside]
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. [more inside]
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. [more inside]