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.
How do I make a command-line tool in Ruby?
Allen Wei explains how to make a command-line tool in Ruby, using OptionParser and / or Thor. A guest post on RubyLearning.
Mockup-Driven Development
I’ve just written an article about Mockup-Driven Development.
Ruby-Curses(Commandline fullscreen) example app: TicTacToe
If you are thinking about doing some fullscreen commandline stuff and also like games, this Ruby-Curses example gem tic_tac_toe is a nice starting point.
Why you should always validate maximum lengths (and doing so with validates_lengths_from_database)
In a new post I explain why you should always validate string field maximum lengths in your models and release a new gem for making it easy, called validates_lengths_from_database.
Thats unusual, Ruby metaprogramming 101 #1: Single? Singleton!
Ever wondered what metaprogramming is and how ruby does it? Check out this simple post on singletons, your start on metaprogramming.
Tick gem: convient way to benchmark your method
I just developed a small tool Tick. Provide a convient way to print time cost of your method in color. Easy to turn on and turn off, change text template, change text color.
Spellingbee gem - spelling correction in ruby
I just created the gem spellingbee which is a spelling correction tool. It’s my first gem, so it has way too many bugs to fix, but I’d appreciate feedback on how to improve it. Please do fork it on github and improve it or report a bug here.
Getting to Know the Ruby Standard Library - Timeout
Today I have another installment in my series on the ruby standard library. We take a look at how timeout works and what to use it for. If you haven’t looked at Timeout’s source, you might be surprised at how simple it really is.
Using vim to write ruby code? Check out this excellent refactoring plugin
A series of posts documenting the excellent vim plugin vim-ruby-refactoring. [more inside]
Loose Change / GeoCouch Demo App
Looking to build a geographically-aware application on top of Rails 3 and CouchDB? This demo app shows you how to build up a spatial database and display it to your users with the Google Maps API.
Rails Misapprehensions: Understanding RESTful PUT and POST
In my last article this year I explain the difference between POST and PUT by using the classical shopping cart example. Happy New Year to all you coders!
jQuery $.extend is slow
Although not exactly Ruby, a lot of Ruby/Rails coders end up using jQuery, and I thought that my findings on the speed of $.extend would be interesting to the community.
How to install Ruby and any other gem with RVM on Fedora 14
Check out this short guide on installing Ruby on Fedora using RVM.
ANN: Qwandry 0.1.0
I just finished up a fairly large update to Qwandry, a tool for quickly opening libraries, projects, and packages. For all you polyglot programmers you can now easily use Qwandry to launch your ruby libraries and gems, perl, python, and node libraries as well. [more inside]
VIDEO: How to Install Ruby 1.9.2 and Rails 3.0 on Ubuntu 10.10
How to Install Ruby 1.9.2 and Rails 3.0 on Ubuntu 10.10 Also includes a link to a written article with the same content.
Improving Rails environment setup on Windows machines
RVM author @wayneeseguin is joining EngineYard to improve the experience of setting up a Rails environment on a Windows machine. Blog post here.
http://strfti.me, a strftime reference and sandbox
Always find yourself looking up the strftime date and time formatting codes? Join the club! I built http://strfti.me a few months ago as a simple, easy-to-read reference at an easy-to-remember URL. I included a Rubular-inspired sandbox to make it easy to experiment with different formats. (http://strfti.me is similar to http://www.foragoodstrftime.com/ which launched recently, but choice is good!)
Ruby Programming with CUBRID Database
Have you heard of the CUBRID Database known for its high optimizations for Web applications? Recently, Ruby active development has been started for CUBRID Database. Its first gem has been pushed to RubyGem’s Gemcutter. Now Ruby developers can install the Ruby Driver for CUBRID by as simple as typing gem install cubrid.
Rails 3 Cheat Sheets
Envy Labs just released some Rails 3 Cheat Sheets. They’re a six page reference guide to the new APIs and features in Rails 3.
Acceptance tests for OmniAuth
Rodrigo Flores talks on Plataforma’s blog about doing Acceptance tests for Omniauth.
Twiddle Wakka
Do you know the Twiddle Wakka? I thought this was one of the more interesting things I took away from Rubyconf via Jeremy Hinegardner’s Anthropology of Ruby talk.
MongoDB-based Backend::Store implementation for I18n gem
I just wrote Mongo-I18n - KeyValue backend for I18n. It allows you store your internationalized messages in mongodb, that is by far more flexible solution than rails’ enabled by default Simple backend. We use it to allow the non-geeks from our team to participate in internationalization process via web interface.
Getting to Know the Ruby Standard Library - Pathname
We continue our exploration of ruby’s standard library by looking at how Pathname works, and what we can learn from it.
Using Singleton Classes in Ruby
A short blog post covering how one can use a Singleton class in a real life example to encapsulate logic in a better way and make your code more extensible.