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 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]
I've been a busy bee
As well as Sinatra Cookbook, which I am still writing, I’m also building a platform for Freelancers and small agencies to better manage clients, Husk CRM. [more inside]
ArcServer.rb
I just launched arcserver.rb which allows to interact with ESRI ArcGIS Server Restful API.
7 daily use cases of Ruby Hash
In that blog post, I share 7 use cases of Ruby Hash I met often. I hope it will be useful to you.
Why I Wrote the Sucker Punch Gem
I wrote a new post titled Why I Wrote the Sucker Punch Gem. Hope you enjoy!
vienna.rb Talk - Open Football Data - Get Ready for the World Cup in Brazil w/ Ruby
Hello, Last nights slides from the vienna.rb talk titled “Open Football Data - Get Ready for the World Cup in Brazil 2014 w/ Ruby”. Use left/right cursor keys (or space bar) to browse the slides. Or check the all-in-one-page markdown source. Cheers.
RuboCop 0.19 has just landed
RuboCop 0.19 has been released! This is the biggest RuboCop release we’ve done in a while. The highlights include about a dozen new cops, more cop configuration options, improved auto-correct and so many bugfixes. [more inside]
How to automatically migrate all your images to the cloud
This blog post describes a method that combines the advantages of automatic image fetching from existing online locations with the advantages of managing new images directly in the cloud using Cloudinary. This method allows lazy migration to the cloud as well as other powerful origin pulling options. Sample code included for Ruby on Rails.
The "don't use a small gem" fallacy
Much is said about code reuse, when to reuse and how to reuse, but there’s a strong movement about not depending on a gem if it’s small or if you can write one that does the same yourself. Is it really an improvement to write one yourself?