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.
Fat Free CRM 0.9.7 released
Fat Free CRM is open source Ruby on Rails-based customer relationship management platform. Release notes for this version are available at the project wiki page on Github.
Simplifying your Ruby on Rails code: Presenter pattern, cells plugin
In this article I’m explaining how to work out bloated controllers in Ruby on Rails applications, what to do with domain logic in views, when there is only one place where it is used, and how to simplify your controller code with lots of fragment_exist? checks.
Tracking Down Slow-Running Examples in RSpec
As the number of tests goes up in your Rails project, you’ll find yourself spending more and more time starting at the field of green dots waiting for RSpec to finish. This article shows you how to track down slow-running examples to target for refactoring.
How to avoid the dog-pile effect on your Rails app
In this post, Hugo Baraúna explains what is the dog-pile effect, the dangers it poses to your application scalability and how to avoid it.
Unobtrusive JavaScript helpers in Rails3
If you want to know how remote links and forms will look like in Rails3 then check out a post about unobtrusive JavaScript helpers.
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
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.