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.
Cucumber for gem documentation
I had a go at using Cucumber to document and test a small gem to explore the style of the language and how to implement the steps.
Var.to - Link shortening with variable endpoints
Just launched Var.to, a link shortener for A/B testing anything. Source code is available (MIT license, build on Sinatra, DataMapper and Heroku).
Using Haml with Rails
A short introduction to getting started with using Haml instead of Erb with Rails.
Ruby Directed Graph
I created a Directed Graph gem in pure Ruby, using Redis as the backend store. Check it out and let me know if I did it totally wrong. :)
BlogCast : the ruby blogging platform
I just uploaded BlogCast the ruby blogging platform.
BasicObject in Ruby 1.9
I just found that BasicObject class in Ruby 1.9.
A review of Metaprogramming Ruby
I have just published a review of Metaprogramming ruby.
Migrate from authlogic/authlogic-connect to devise/omniauth
My recent blog post tells you how I migrated authentication system from authlogic/authlogic-connect to devise/omniauth for rails-bestpractices.com
hirb-unicode
I just release a gem hirb-unicode to solve unicode display problem of hirb gem.
Huh? Unit Testing in less than 40 LOC?
This is huh, my unit testing library in less than 40 LOC. There are many like it, but this one belongs to me. :)
Terminitor Termfiles
Terminitor is a great tool for getting your development environment setup so that you can get to work faster. If you don’t know about it read up on it here. With the potential of people making awesome Termfiles we though it be great if they could be shared for others to use so we created the Termfile project, which is inspired by Chris Wanstrath (aka defunkt) gitignore project. Check it out and send us some of your Termfiles so others can use them.
Save Capistrano output on deploy
If you ever wanted your Capistrano output saved in case you need it, here’s a few lines of code that will fit nicely in your deploy.rb.
Benchmarking TorqueBox
TorqueBox goes to 11, but how does it compare to Trinidad, Unicorn, Passenger, and Thin? See how the top JRuby and MRI servers perform for Rails and Rack applications.
Syntax highlighting in the terminal with ruby
I made a little script to read ruby files and spit them out coloured in the terminal. It can be used to replace cat eventually so that you can see the line number and highlighting. It only highlights ruby at the moment and highlights in aweful hard coded colours, but that’s easy to change. Future features could also include highlighting search strings passed through the second parameter.
Optimising Phusion Passenger for a VPS
We explain how we tuned one of our Virtual Private Servers with some basic configuration changes to Phusion Passenger. Click here to read the article.
Cucumber plus ad-hoc apps to test Rails 3 generators
An article explaining how to test Rails 3 generators using integration-like tools such as Cucumber, Aruba and generated ad-hoc apps.
Interview with Jamis Buck
Interview with Jamis Buck … Lesscode.se
Handle static list in your database (enums-like functionnality)
So, sometimes, In your application you may want to handle things in your User model like sex (female, male) or other static lists. You don’t like ENUM. You want these lists to be handled using ‘textual keys’ in your application but stored in your database using codes in an integer column. You don’t want to join other tables to display these information. You want these lists to be easily ordered, localized and translated using Rails i18n.You want view helpers to display these lists localized and validations helpers to validate the values in the ‘receiving’ model. That’s why we wrote static_list. It’s just a gem install away !
Authlogic gotchas
I know, nobody uses Authlogic anymore. But for those few who do, here are two tips which can save you a massive headache.
Ruby concurrency explained
I just wrote a blog post explaining concurrency in Ruby, the difference between concurrency in PHP, Java and Python/Ruby. What are the different ways to achieve concurrency and their pros/cons.
friendly_digest a Gem to reduce typos in ID strings
The friendly_digest gem tries to reduce user mistakes when they are referring to an ID. It removes 0,O,1,L characters and jumbles things up to make them look non-sequential. It also removes case sensitivity. Optionally, you can add an extra character as a checksum so that can be more confident there was no typo.
Ruby on Rails workshops in Boston
If you’re a developer in the Boston area looking to sharpen your skills, Fairhaven Capital and thoughtbot have teamed up to offer training courses in Boston at 50% off regular price ($600 for 2 full days of training, intro and advanced levels). Details
Introduction to Sass (7 Minutes)
We’ve just released the Introduction to Sass as a follow up to the popular Haml screencast which Peter Cooper posted on Ruby flow a week ago. We cover all the goodness of Sass, including variables, mixins, nestings and selector inheritance, as well as how to convert your existing CSS to Sass in a flash. Check it out.
Cucumber Testing Tips
Neeraj Singh discusses a few handy cucumber testing tips. Learn an easy way to debug using cucumber as well as how to run just a single feature.
Setting up your custom Hoptoad Notifier endpoint for free using Errbit on Heroku
A step-by-step guide on setting up Errbit with SSL on Heroku to use it as your own, free hoptoad_notifier endpoint for exception tracking.