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.
Throw-away methods in Ruby
Check out my post on throw-away methods in Ruby - evil, but possibly useful in some situations.
Rails Magazine Issue #4 - Free Download
Rails Magazine issue #4 is out, you can download it from here. Exclusive coverage of Ruby Kaigi 2009 – the largest Ruby conference in Japan: photos, analysis, special guests and more. [more inside..]
XSS Vulnerability in Ruby on Rails
There’s an XSS Vulnerability in Ruby on Rails, have a look
Easiest Ruby GeoIP gem
There are quite a few geoip gems out there that use the free Maxmind db, but most of the seem to require you to compile another application (available from Maxmind) to use it… It’s too difficult and not even necessary. The Maxmind db is in a binary format, but it is very easy to read… Check out geoip gem on Github for a ruby gem that reads the Maxmind ip database and doesn’t even require compilation!
Reporting With Google Spreadsheets
The next time someone who doesn’t know SQL asks you for a report, don’t roll your eyes, take Spreadsheet Report for a spin. It’s a nice simple tool for dumping data out of SQL databases into Google Spreadsheets.
Experiencing a Memory Leak? Why, that may not be it at all...
Engine Yard App Support Guru Sudara Williams talks about how Mongrel could be the real problem.
Interview with Ravelry
Casey Forbes talks about Ravelry (very popular knitting site running on Rails) and what it takes to keep it running here.
Registration Now Open for "Essential Javascript" and "Rails for Everyone" in Chicago
Get started with Rails with Rails for Everyone, geared for everyone new to Rails. The workshop focuses on RESTful development and Rails best practices in an inclusive, professional environment. Oct. 24, 2009 in Chicago, $395. Or take your Rails and Sinatra apps to the next level by learning how to properly use Javascript and the jQuery framework. Essential Javascript with jQuery, Oct 17, 2009 in Chicago, $395.
Using Ruby Blocks And Rolling Your Own Iterators
I recently covered Ruby block basics in my post, More Advanced Ruby Method Arguments – Hashes And Block Basics. I mentioned that blocks are not really method arguments and also covered the two different types of block syntax. Towards the end of that post I promised to examine Ruby blocks more deeply and I am going to do that here. In my opinion there are several interesting things about blocks…
Getting Started With MacRuby
Posted an intro article about how to get MacRuby up and running on your system!
Passenger preference pane v1.3 released
The Passenger preference pane v1.3 for 10.5 and 10.6 users was just released! Spread the word! Oh, and watch the repo! KTHXBAI :)
A Wealth Of Ruby Loops And Iterators
I remember when I first started looking at Ruby, I’d be browsing some code and see yet another way of looping/iterating over stuff. Whenever that would happen I would think, “…Ruby sure has a lot of different ways to iterate over things”, but I also remember wishing that someone would just put all the different ways to loop and iterate over stuff together so that you don’t have to discover them in a piecemeal fashion. So, I’ve decided to fulfill my own wish and put together all the different ways to loop over stuff in Ruby…
Ruby DCamp is Challenging the Economy
I just wanted to point out some information about Ruby DCamp over on InfoQ. I talked with the event organizer and it looks like a great event - Ruby DCamp is Challenging the Economy.
Inherited_resources fondles swfupload and you didn’t even know it
A simple way to keep a tidy create action when using swfupload with inherited_resources.
always remember me
Clearance now uses only cookies with a long expiration.
Collaborative Filtering with Ensembles
Ensemble methods are proving to be very effective for doing collaborative filtering (product recommendations, etc) as the results from both the Netflix and the recent GitHub challenge clearly show. A look at what ensembles are, and how they can be used (in Ruby, of course).
bullet - A rails plugin/gem to kill N+1 queries and unused eager loadings
The flyerhzm-bullet gem is designed to help you increase your application’s performance by reducing the number of queries it makes. It will watch your queries while you develop your application and notify you when you should add eager loading (N+1 queries) or when you’re using eager loading that isn’t necessary. It also provides some notification, such as javascript alert, browser console.log, bullet log, rails log and growl. [more inside]
[Screencast] Real Thin Restful Controllers with Inherited Resources
I just launched a full featured screencast about José Valim’s Inherited Resource gem/plugin. It makes your controllers truly DRY-ied, lean, elegant and Thin. And more: it has a couple of backported features from Rails 3 for you to use right now!
Cassandra and Ruby: A Love Affair?
Check out the newest post in Kirk Haines’ series on Key-Value Stores!
Installing PostgreSQL on Snow Leopard 10.6
Whether you are using PostgreSQL for general development, or need a version to match your setup on Heroku, getting PostgreSQL 8.3 installed on Snow Leopard is fairly straight forward. However, you’ll want to make some changes so that it works right for you.
Do not burden your users with validations
On this post, Hugo Barauna gives some usability tips when working with Rails validations.
phpbb-auth - A rails plugin/gem allowing...
phpbb-auth - A rails plugin/gem allowing you to use an existing PHPBB forum for handling users/authentication in your rails app.
Ruby developer guide to upgrade to Snow Leopard
The Ruby on Rails blog just published a simple guide with the basic things you need to know to upgrade to the latest version of OSX.
Ruby’s case statement uses ===
I’ve not found this stated clearly enough elsewhere so I’m doing so myself. Ruby’s case statement calls the === method on the argument to each of the when statements Some explanation and examples (and quirks) in my blog post about it here.
Using Ruby to create Automator actions and Services in Snow Leopard
A Snow Leopard service, powered by Ruby, uploads images to Amazon S3 via a right click menu. More info and download.