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.
Gem to automatically set I18n.locale based on user's browser language
A while ago I’ve created a locale_detector Ruby gem to automatically set I18n.locale based on the language of the web browser that the user is using. It comes very handy when you want to support multiple languages in your web application as it takes care of the language switching (i.e. now you don’t need to put the language switcher on every page).
Apotomo – Screencasts Of Glory – Episode 4: Partial Updates
In this screencast we learn how to use the event instance as a messaging object between widgets and how to partially update the page without having to re-render the entire widget.
renee - The super-friendly rack framework
Renee is a friendly ruby web framework that draws its inspiration from Sinatra. Check it out at http://www.reneerb.com or fork it on Github.
Inject: Temporarily extend the calling scope of a block.
inject can be used to temporarily extend the calling scope of a block with instance methods from a module. [more inside]
Saw that Pfeed (Automagical Feeds) is now available for Rails 3.x
I just found that pfeed has been ported to Rails 3.1. You need Pfeed when you want to automagically create fancy logs / activity updates in your rails app, asynchronously.
Communication in Engineering, Software, and Open-source
Not strictly ruby, but I wrote this based on my experience developing open-source ruby and javascript projects in mind. Communication in Engineering, Software, and Open-source.
Search Youtube with ease
Ruby YouTube Search a siple gem (no dependencies) for a simple task. YoutubeSearch.search(‘lolcats’, ‘orderby’ => ‘viewCount’, :per_page => 3, :page => 1)
rolify: roles library with resource scoping
I just released rolify 1.1, this ruby gem provides a simple way to manage different kind of roles in your application. Let say you don’t want just global roles in your application and/or you don’t want them to be hardcoded. Rolify allows you to define 3 role scope levels: [more inside]
bundler-auto-update: Auto-magi-safely update your Gemfile.
I just released bundler-auto-update, a ruby gem that updates all gems listed in your Gemfile to the most recent version that does not break your tests.
Turn Urls into image/videos tags
Url-To-Media-Tag converts e.g. user-submitted urls into images and videos UrlToMediaTag.convert(‘http://www.youtube.com/watch?v=kW-dS4otEZU’) # -> <iframe …>
A quick and dirty Rails development environment using ubuntu 11.10
I have a quick setup for getting up to speed with the latest versino of ubuntu. [more inside]
Simple Nginx tuning for production server
Simple nginx tuning for rails application on production server
The Resque Way
Bogdan Gusiev walks through lessons learned using Resque in production at RailsWare.
Fast specs - Run your specs in less than 1 second
I run my specs in just under a second. How fast are your specs? Read more here http://ariejan.net/2011/10/13/fast-specs-run-your-specs-in-less-than-1-second
Gitlab released. A similar to github application but for your servers with private repositories only
Gitlab released. A similar to github application but for your servers with private repositories only. http://gitlabhq.com
Airplay 0.2.6 iOS 5 Support
Apple releases the final for iOS 5 and i update the gem also! Now supports Apple TV running iOS 5 and Airplay compatible servers.
Multiple Facebook login strategies using Devise and Omniauth
I needed to create multiple Facebook Omniauth login strategies in the same app. So I wrote a post on how I did it. Read the post on Wealsodocookies.
How to install VM's on a Hetzner Root-Server with an automated script.
You can find all information in the README file. My goal was to save money and to have multiple independent systems for development, testing, staging and production.
When Your Fat Models Need to Go on a Diet
Thoughts on slimming your heavy ActiveRecord models at the source and during runtime.
Using rbenv to manage rubies
How I use rbenv to manage rubies and integrate with other UNIX tools
Silicon Valley Ruby Innovator Award Competition
The first ever Ruby competition judged by “Matz” in Silicon Valley. Application Deadline: October 17 Enter Now: » 2012 Fukuoka Ruby Award Competition
Ammeter: The Way to Write Specs for Your Rails Generators
Introducing the Ammeter gem that lets you write specs for your Rails Generators using RSpec.
REE garbage collector performance tuning
A long back I have tuned my GC of REE for a small rails application and also wrote post over here. Now it is a time to revisit whether same tuning is still applicable, after code base becomes huge.