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.
A Cacheable Hash That Stays Synced
Rails.cache freezes values in hashes that are cached directly. CacheableHash is a wrapper for Hash objects that prevents that from happening. Changes to the Hash being wrapped are automatically persisted back to the cache store so that everything stays in sync.
5 questions to ask yourself before developing for Facebook Connect
Here is a rundown of 5 questions you should be able to answer before kicking off a new Facebook Connect project. Read it if developing for social networks interests you.
True, False And Nil Objects In Ruby
Every expression and object in Ruby has a boolean value. True, false and nil are special in that they are not only keywords but are also objects which means we can do some interesting things with them.
Fat Free CRM running on Heroku
I wrote a 1 minute tutorial on getting Fat Free CRM running on Heroku since the question has come up a few times.
Launching Soon - Launch before you launch your rails application
Launching soon is a simple open source rails plugin developed by our team member Satish that helps rails projects to manage a dedicated launching soon page before the actual launch date. The plugin also collects email from potential customers and have integration with online newsletter services like Campaign Monitor and Mailchimp. Try Launching Soon and we are looking for the community feedback.
User Editable Liquid Templates in the Database
I just launched about how to store your view templates, using the Liquid engine, in your database instead of files. Still an experimentation, but maybe a promising concept.
SWFUploadFu
Just launched SWFUpoadFu plugin for Rails http://github.com/alex3t/swfupload_fu/tree/master
Modules and Ancestors
In studying the inheritance of methods I came across what I consider a surprising behavior of modules included into classes. Described here.
Vlad the Deployer Hoptoad Integration
How to integrate Hoptoad with Vlad and pull out relevant git information.
detached-carrot
I just launched Detached-Carrot a port of SimplifiedStarling plugin for push&pop active_record tasks with RabbitMQ. SimplifiedStarling is a very cool plugin that works on StarlingMQ, since Starling presented some problems with the latest versions of memcached-client i decided to work on porting SimplifiedStarling to work on RabbitMQ. This plugin works with carrot gem a great client for synchronous amqp. so what makes DetachedCarrot is simply detach the process and push AR tasks in the same way as SimplifiedStarling does. so probably the switch to ss to dc should be transparent.
3 ways for rails caching with jquery
While implementing caching in a recent rails project I came across some typical caching issues. One solution was to use JavaScript, more specifically jQuery. Check out the blog post by Sid</a>
Snow Leopard Rails Dev Stack - x86_64, MacPorts, Ruby 1.8/9, SQL Server, MySQL..
This guide is all encompassing but primarily focuses on the benefits of MacPorts, second the development stack for SQL Server and lastly on anything else a rails developer might need on OS X. If you are on a Mac, possibly running Snow Leopard and x86_64 is near and dear to your heart, this article is for you.
Snow Leopard Ruby Development Environment Checklist / Gotchas
My checklist of tasks and gotchas for getting your Ruby environment up and running as quickly as possible after a clean Snow Leopard install.
Background processing for paperclip
A quick article on a way to get Paperclip to do image resizing, or any other processing, in the background.
Lapsus: Development Time Tracking Without Timers
Lapsus is a time tracking software currently in beta that has been developed specifically with Ruby and Rails developers in mind. You don’t have to start/stop timers, it detects when you’re working (in TextMate, etc). Developer John Gallagher is keen for people to sign up to join the beta.
Ruby 1.9 Date Problems
One problem with Ruby 1.9 that took me a while to figure out was why my months and days were being switched in Rails. Find the solution to your Ruby 1.9 Date Problems here on the blog!
Rails OpenID Engine
I just put up a Rails OpenID engine that does almost all of the OpenID authentication work for you, minus a few simple steps, which you can read about here.
UI enhancements in RCov 0.9.0
The latest release of RCov (0.9.0) includes significant UI improvements, including… [read inside for more..]
Patching Ruby on Rails Refresher
I needed to patch Rails in production today, figured I would share how to patch Rails in the event it wasn’t common knowledge - Patching Ruby on Rails Refresher.
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! http://github.com/cjheath/geoip/tree/master
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.