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.
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.
RailsApps Tutorial on Authorization With Pundit
I’ve just released a tutorial on Rails authorization with Pundit. I appreciate the support I’m getting from subscribers to the RailsApps project that makes it possible to write these tutorials.
Persisting Rails models in Elasticsearch
A new version of the elasticsearch-persistence Rubygem has been released, with support for using Elasticsearch as a persistence layer for Ruby/Rails models. See all the info at Github, and use the Rails template to generate a full example application.
POODL – Practical Object Oriented Design in London with Sandi Metz and Matt Wynne
In case you weren’t aware, we at Kickstart Academy have got Sandi Metz coming to London to teach her Practical Object-Oriented Design classes. [more inside]
Ruby setter method gotchas...or what?
I’ve just written a blog post about some odd things I found out while playing with irb about custom setter methods.
last eurucamp regular ticket sale, speakers announced
The last of our two regular ticket sales takes place tomorrow, Wednesday 18 May at 10am CEST. Tickets are available at tickets.eurucamp.org and, once again, expected to sell extremely fast! What’s more, our full speaker line-up has now been announced!
Foolproof I18n Setup in Rails
Let’s make I18n on Rails better, quickly and easily. These tips have helped us and caught some easy-to-fix but hard-to-track-down mistakes.
How Rails' Type Casting Works
Have you ever noticed that when you assign a property to an Active Record model and read it back, the value isn’t always the same? [more inside]
Fast, consistent setup for your Ruby and Rails tools
After you build a few Rails apps, you’ll begin to have some preferred ways of working with them. Maybe you always want to use awesome_print in your Rails consoles. Or you might want rails new to create projects that use rspec instead of minitest. Sure, it’s only a little annoying to have to specify these preferences each time you run a command. But they’re easy to forget. With a few small tweaks, you can have these commands remember your preferences, so you won’t have to.
Tracking Deployments with Rollbar – Free Snippet
Grab this free re-usable snippet to integrate Deployment Tracking with Rollbar into your Deployment Process. [more inside]
Automatic Eager Loading in Rails
Tired of specifying eager loads in your Rails application? We wrote a post exploring how Rails could handle eager loads automatically and we released a corresponding gem to demonstrate these ideas.
Automatically search Google for exceptions raised in your Rails applications
I just released a new gem called stack_rescue that automatically searches Google for exceptions raised in your Rails applications. Check it out on Github.
Monkeying With Methods
Want to do some more metaprogramming? Heck yes you do! [more inside]
Ruby on Rails backend for a World Press Photo site - behind the scenes.
Last Sunday the Stories of Change - a showcase presenting 29 unique stories of daily life in North Africa that changed after the “Arab Spring” events - has been launched. We’re super happy to be part of this project lead by World Press Photo. As a team responsible for the entire back-end site (Ruby on Rails of course!) - we’d love to share with you our story - Behind The Scenes: Announcing Stories of Change for World Press Photo.
Grand Central Dispatch Isn't Just For Background Queues (Singletons in RubyMotion)
Tonight at SydInMotion I got in a discussion that lead to me explain Dispatch.once and why it’s so handy. I’ve decided to write this up as a quick tip as it’s useful in almost any application. [more inside]
All-time World Cup standings (1930-2010) calculations and more w/ sportdb gem
Hello, The latest sportdb gem includes new tables (and models) for group, league and all-time standings. For example, to calculate the all-time standings table for the World Cup (including all nineteen tournaments from 1930 to 2010) use the football.db build script and issue $ rake build DATA=history This will import all teams, tournaments, results, and so on and dump
the all-time standing e.g.
1 Brazil (BRA) 97 67 15 15 210:88 216 19
2 Germany (GER) 99 60 19 20 206:117 199 17
3 Italy (ITA) 80 44 21 15 126:74 153 17 ...
The full results all serve as a great checksum that all football.db match data is up-to-date and complete. Cheers.
Ruby community seems awesome! I want to learn from ruby community.
I am a very beginner with ruby but not in programming. Want to learn this language very well. I heard ruby community is awesome! So, can I work with any experts group, from whom I can learn this amazing language? Is there any mentor at rubyflow?
rack-dev-mark 0.3.0
I just released rack-dev-mark 0.3.0. The github-like dev ribbon will be shown on all the pages in development environments!
Practical Microservices with Ruby book
I’m writing a book on practical microservices with Ruby. If you want to stay posted on my progress, receive book excerpts and get a special launch discount, subscribe here!
How to create post-it notes app in Ruby Shoes
My step by step guide to creating post-it notes app in Ruby Shoes with YAML::Store for storage of notes.
Configuring your table cells in RubyMotion using MotionKit
After popular request, here is a basics episode for using MotionKit with your table cells, including how to use autoresizing masks and the MotionKit DSL for Auto Layout in your table cells. A short episode filled with good tips. [more inside]
Rails 4.1 Message Verifier - Codemy
We introduce you to the Message Verifier feature in Rails 4.1 ~ 11 Minutes video
Swift Still Won't Replace RubyMotion
The day Swift came out, I wrote up a piece about “Why Swift Will Never Replace RubyMotion” which ended up getting a good amount of attention, both good and bad (luckily mostly good). Since then though, a lot has happened, I’ve talked to a lot of people about my post, I’ve read other peoples thoughts, and most importantly I’ve read and watched as much as I’ve been able to about Swift and how to use it. [more inside]