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.
Google Translate v2
easy_translate now works with Google Translate v2 - Translation is much better, same beautiful DSL with easy bulk translation
Designing for scalability
I just wrote a blog post trying to cover what it means to design for scalability.
Using Ruby for Bayesian Categorization of BoingBoing Posts
How to use the Classifier Gem, Nokogiri, and a 138MB JSON file to build a Naive Bayesian classifier for the BoingBoing post archive. How To and the final Boingable site.
Did You Know That (in Ruby): for..in and Constants
In part of a series on oddities in Ruby, I investigate the surprising interplay between constants and for..in loops.
Regex Search on Arbitrary Sequences in Ruby
In working on Laser, an unreleased static analysis tool, I found need to do regex searching on arbitrary Arrays. This is the writeup, and this is the gem.
Colorize mocha output
If you, like me, think it’s hard to read mocha output sometimes, try put colors on it with mocha-color.
Conditional GET request
Conditional GETs are a feature of the HTTP specification that provide a way for web servers to tell browsers that the response to a GET request hasn’t changed since the last request and can be safely pulled from the browser cache,In this post i have shown how to achieve this functionality.
RMU Study Hall #1
The RMU Study Hall is an opportunity for Ruby beginners to be paired up with somewhat more experienced developers to help them work through the problems they’re having.
Writing plugin for RubyMine in (j)ruby.
You can extend functionality of RubyMine IDE with the help of JRuby and existing ruby plugins. In this post I share my experience of how to execute HAML/SASS converters from inside of RubyMine editor. This plugin can be handy if you are trying to convert legacy rails application from erb to haml templates.
Rails Templater - Generating Rails applications your way
I just released the rails_templater gem which generates Ruby on Rails 3 applications based on your preferred choices.
Fail-fast for Test::Unit
Yesterday I released Tuff, a gem to stop Test::Unit operation immediately after failing, exactly like RSpec.
NYCamp - A RUNCONF in NYC, Free 3-day hacka-learna-conf event next weekend
The organizers of the New York Ruby Meetup are organizing NYCamp, a RUNCONF (Ruby Unconfrence) in NYC next weekend. It is a 3-day event where there will be some open-source-hacking, some challenges/games, and some UN-Conference style presentations. Check out our website (hastily put together :)) and register either on our website or on our meetup page. So come on over, have a good time and get inspired. See you next weekend.
Beautiful standardized RDoc comments for your Ruby / Rails methods
I’d like to share with you the template that I employ for documenting Ruby methods. I like this template because it, like Javadoc, creates a somewhat standard, easily readable comment structure.
Use Authlogic to prevent N+1 queries
I’ve had issues with N+1 queries using current_user in Authlogic. I didn’t know the problem has already been solved. Take a look at my Blog Post.
Cook up presentations with jekyll_and_hyde
The jekyll_and_hyde gem is a HTML presentation generator that generates a basic Jekyll scaffold with Slippy hooking up. This screencast(http://vimeo.com/jingwenowenou/cook-up-presentations-with-jekyllandhyde) walks you through the ideas behind jekyll_and_hyde and how to create a presentation and then publish it to GitHub Pages. The slide is available at htttp://owenou.com/jekyll_and_hyde_demo.
Introducing Silo - A Git-based backup tool and API
Silo 0.1.0 has just been released. It’s a first attempt on creating a command-line tool to facilitate backing up and restoring files using Git repositories. It provides an easy to use CLI that does not require any Git knowledge.
Yet another workaround for default_scope lambda { ... }
The problem is still unsolved, you cannot use lambdas and procs with default_scope. Here is another possible temporary solution for rails 3.0.3: dynamic_default_scoping.
Integration Tests With RSpec2 And Capybara
This post looks at some basic Rails integration testing and also covers some things involving: - RSpec file mappings - RSpec DSL tweaks - Creating an Autotest-Growl reminder - Configuration for JavaScript testing - Issues using RSpec tags with Spork and Autotest - Using Webrat matchers with Capybara
New Screencast Series
Rubyist, CodeSherpa, and ruby5 co-host David Bock is publishing a new series of screencasts. The first one is up, and its about git-flow.
Ruby 1.9.2 Fresh from the Oven or Bootstrap Chef with ruby 1.9.2 and ubuntu 10.10
Ever wanted to use chef with the latest, stable, recommended, super awesome version of ruby (ruby 1.9.2-p136)?? [more inside]
remarkable_mongoid updated for Mongoid 2 RC
Did a much needed update on the remarkable_mongoid gem. All updated for the Mongoid 2 Release Candidate.
Newsletter containing a compiled digest of Rails tickets
Fellow Rails developers, I had this crazy idea where I send a newsletter containing a compiled digest of Rails tickets. The purpose of the newsletter is to reduce the nos of stale tickets and to try and leverage skilled Rails developers like you to help review tickets/patches and confirm/deny bugs reports. It will also aim to help newcomers start contributing. If you think this crazy idea might work I would absolutely love it if you took the time to fill this survey. Should take a couple of minutes. Note that I am in no way affiliated with Ruby on Rails core and this is not an official undertaking.
jekyll_and_hyde: create presentations with Git
jekyll_and_hyde is a HTML presentation generator that generates a basic Jekyll scaffold with Slippy hooking up. Combining Jekyll and Slippy can provide a powerful yet simple solution to create presentations: use the jekyll_and_hyde gem to generate a Jekyll template with Slippy properly integrated; write slides with Makrdown or Textile; publish slides by pushing it to a Git repository, present slides in a browser. [more inside]
Regulate is released!
Regulate is a Rails 3 engine that provides a Git backed CMS that allows for an admin to define editable regions in a page view. Learn more here!
RubyMine IDE sale: more than 50% off before Feb 15th
The news about NetBeans can be sad for some of Ruby developers. But take it as an opportunity to try a new tool! The kind of tool that evolves fast, stays on the cutting edge and has a passionate community around it. RubyMine personal license is available with more than 50% discount! Check out the bargain price!