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.
The New Rubygems Index Format
André Arko writes about the new Rubygems index format, which has been a long time coming.
Submit your Open Source project to Rails Girls Summer of Code
Do you run an Open Source project? We would love to see you involved in Rails Girls Summer of Code! In order to propose a project for this year’s Rails Girls Summer of Code please open an issue on this repository!
Isolated Service: Unobtrusively Fake Services in Your Rails Applications
I just launched IsolatedService. IsolatedService lets you fake service calls. If you have a service that you can’t reach or if you work in a SOA environment you may find this useful!
order_query finds next / previous Active Record(s) in one query
I’ve just released order_query, a gem that finds next / previous record(s) in one query, for ActiveRecord. [more inside]
Ruby Gem Configuration Patterns
I wrote a new post on Ruby Gem Configuration Patterns. Hope you enjoy!
TheRole 2.4 released
TheRole - Authorization Gem for Ruby on Rails with administrative interface. version 2.4 released In this release GUI (based on bootstrap3) moved to external gem.
How to Beat Procrastination on Your New Rails Project
You’ve just typed rails new on your next project. Now what? Where do you start? There are tons of decisions you have to make up front, and it’s easy to feel lost, and procrastinate, and get frustrated, and never finish your app.
Problem Solving - It's a Trap!
I love being a developer but the job doesn’t come without its risks.
Managing externals in Ruby tests
I wrote a blog post on managing externals in your Ruby tests. It includes tips for managing time conditions, avoiding HTTP requests and testing an OAuth flow.
Prawn PDF Toolkit goes 1.0.
After six years of hard work, we’ve finally shipped Prawn 1.0. [more inside]
Truly "Universal" RubyMotion Apps - Supporting both iOS and OS X
There is a lot of apps out there that have both an iOS and OS X application, and a good amount of their code could be shared. Learn how to do exactly that with RubyMotion by reading my new blog post, Truly “Universal” RubyMotion Apps.
Inch Pages: The first three weeks
Three weeks have gone by since Inch Pages, kind of a Code Climate for your inline docs, has launched. [more inside]
Why do you like Ruby?
While we work on client projects, personal projects and our site using Ruby it’s often good to stop and remember why we love ruby so much. Here’s why we do.
Nobody Knows Ruby
A five minute demo of lesser known Ruby features titled Nobody Knows Ruby, presented at Wroc_love.rb in Poland.
Grand Central Dispatch in RubyMotion - A better way to do multicore
Grand Central Dispatch is one of the greatest (grandest even?) ways to do multithreaded applications in any language, which if you’re doing any kind of processing or network communication, it’s likely you will need to make your application use multiple threads too. In this episode we take a look at the main use cases for GCD and the simple code you need to write to run certain tasks in another thread by using queues and blocks. [more inside]
Ruby Hash Selector Pattern
Ruby hash selector help clean up your code Ruby Hash Selector Pattern Video / Article.
linkto gem - link_to helpers for google search, flickr photo search, wikipedia search, and more
Hello, I’ve collected a couple of link_to helpers in the new linkto gem. Helpers include: google_search, google_search_images, bing_search, flickr_tags, flickr_search, wikipedia_search, and so on. See the linkto gem in action at the beer.db.admin site, for example, see the Ottakringer brewery page. Cheers.
Using gem rails-cache_control to significantly speed up your page
I just launched gem rails-cache_control which can significantly speed up your page. This gem will automatically add HTTP Cache-control header when caches_action expires_in specified. You do not need write a single line but just included it in Gemfile.
Rails: Be careful with params.merge()
I’ve seen a lot of people doing it and I used to do it too, use params.merge(…) in link_to or redirect_to calls. You do this because you want to change one ore more parameters (like the locale, current page or search query) but leave the rest as it is. But heads up, there is an issue with this solution!
Code Ping Pong with the creator of Ruby on Rails
Ping pong over code with DHH & say goodbye to vague architectural debates.
Back to Basics: Polymorphism and Ruby
Polymorphism is one of the fundamental features of object oriented programming, but what exactly does it mean? At its core, in Ruby, it means being able to send the same message to different objects and get different results. Let’s look at a few different ways to achieve this in Back to Basics: Polymorphism and Ruby.
Why We Should (Absolutely Never) Build Software Like We Build Houses
I’m building a house and I write software for a living. So when someone showed me the article “Why We Should Build Software Like We Build Houses “ I had to disagree…[continue reading]