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 Rogues discuss their Personal Design Rules
The Ruby Rogues discussed their personal design rules for programming in the latest episode. [more inside]
Github Wacher, get instant Growl notifications!
Github Growl Watcher is a gem which have the aim to help you to watch any project you want and get instant growl notifications for: updates, new watchers, forks and issues. Check it out!
LastModCache: Simple ActiveRecord Caching
I recently released last_mod_cache gem as an option for quickly adding a caching layer to all your ActiveRecord models that include an updated_at timestamp column.
Browse Ruby documentation in Vim with ri.vim
I just launched ri.vim, a Vim plugin that lets you search and browse Ruby library and gem documentation right inside Vim. Features include extensive autocompletion help, quick method lookups, hyperlinked symbols, and better K
functionality when you’re in a Ruby file.
Padrino 0.10.0 Released!
The Padrino team just released 0.10.0 which includes major performance improvements (with benchmarks), Rubinius and JRuby Support, enhanced route filters and ordering, along with many compatibility and bug fixes. Read about this release on our blog entry for more details. This release is a serious step towards a 1.0 release as the Padrino API continues to stabilize and mature.
Customize your Ruby with ruby-patches
Want to mess around with an experimental features for Ruby? I’m putting together a GitHub repository for Ruby Patches. There’s a few in there for Ruby 1.9 and JRuby, so far - and submit your own with just a fork+pull request!
Routing to Rack Applications
As the Rails documentation is a bit lacking on this subject, I just posted about how to route to a rack application with a real example: Routing to Rack Applications
Building a Star Rating System with Rails and jQuery
I released a video last week demonstrating how to build a star rating system with Ruby on Rails and jQuery. It’s a simple system that uses the jQuery click() function to highlight stars and send an AJAX request to the Rails server to save the rating.
Slop 2.0, Option parsing made even easier
Your favourite Ruby option parser just hit 2.0! Slop is a lightweight option parser with an easy to use DSL. Slop adheres to the Semantic Versioning scheme, so 2.0 allowed me to alter some of the default configuration options you all wanted saner, this means deprecations and code moving forward. Check out the CHANGELOG and let me know what you think of Slop!
Ruby/Rails training this August in Manchester, UK
Short announcement about an in-person 3-day Ruby and Rails training course Me and Ric Roberts are running in Manchester, UK this summer. It’s in support of the MadLab hack space and is a bargain at £360!
js-model and Rails 3.1 integration
I wrote quick post about the js-model-rails gem for Rails 3.1 which briefly muses on the new possibilities for integration between frontend and backend.
Difference between class_inheritable_attribute and class_attribute
I couldn’t find any simple explanation about differences beetween class_inheritable_attribute
and class_attribute
methods, so I write a short post about them.
Forever, microframework for your daemons!
Small daemon framework for ruby, with logging, error handler and cli to easily manage and watch your daemons… check it out!.
GemAWeek Episode 5 - RABL
Just released episode 5 where I go over creating public APIs using RABL. Check it out at http://gemaweek.com/post/7313783147/episode5-rabl
Optimistic Locking with MongoDB
Over on the Highgroove blog, I talk about optimistic locking with MongoDB and mongo_mapper.
Quoted Labels: A Reasonable Ruby Syntax Change
I’ve proposed a new, small syntax change for Ruby: quoted labels. Hear me out.
Instant Rails dev environments with Tmuxinator and Foreman
How to start an entire development environment with a single command
BorderPatrol: KML border checking in Ruby
Square just released a gem they’ve been using internally to do geodata analysis. Check out the blog post for more details.
stamp: Date and time formatting for humans
Format dates and times based on human-friendly examples, not arcane strftime directives, with stamp. [more inside]
RESTful API with Sinatra at DakarLUG
Coding party at DakarLUG (Linux User Group) and RESTful API with sinatra here ! . I will put the slide on my slideshare.
Setting up Rubygems.org proxy on local server
Running bundle install
and waiting and waiting is obviously painful for many developers. To ease this pain, it took some time and blogged about it for future reference.
THE BETTER WAY TO ORDER BY RAND in scope
ORDER by RAND() in MySQL is super slow. Jan Kneschke had wrote a article ORDER BY RAND() 3 years ago.This article explains a lot about his alternative ORDER BY RAND solution [more inside]
rails_best_practices 0.9.0 & 0.10.0 released
I have released rails_best_practices 0.9.0 and 0.10.0, adding “remove empty helpers” and “remove tab” checks, check out the gem here.
The results for Codebrawl's RSpec formatter contest are in!
Codebrawl’s first contest just ended. We asked the contestants to build a formatter for the RSpec testing library and we got some fun entries. Check out the contest rundown to find out who won!