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.
RubyMine IDE sale: more than 50% off before Feb 15th
The news about NetBeans can be sad for some of Ruby developers. But take it as an opportunity to try a new tool! The kind of tool that evolves fast, stays on the cutting edge and has a passionate community around it. RubyMine personal license is available with more than 50% discount! Check out the bargain price!
attr_bucket, A Gem for Your Lolrus Model
I just posted an article about attr_bucket, a little gem I should probably never have written that allows you to do evil things to your models. Things like serializing a bunch of attributes into a single “bucket” column, but still support using them with validations and form_for.
Testing Ext JS/Rails components with Cucumber and Selenium-WebDriver in Netzke
A blogpost about testing Netzke (Ext JS + Rails) components with Cucumber. Can be useful for those using Netzke, as well as for those using Ext JS with Rack applications directly.
RefineryCMS 0.9.9 Released - Last step towards 1.0
A lot has happened since the 0.9.8 release almost 5 months ago. First of all, Refinery has surpassed all other Rails CMSs in terms of users, downloads, and forks. This has generated a lot of interest in the project, meaning version 0.9.9 represents over 4200 commits from 85 contributors. [more inside]
Wavy Interactive Ruby
Wirb fixes some Wirble bugs, for example :+ or :*. It also supports more objects like regexes, sets and enumerators. [more inside]
Data Modeling in Performant Systems
I (John Nunemaker) just posted about some things I have learned over the past six months and a new object mapper named ToyStore. Its built on ActiveModel and can talk to any thing that can read/write/delete data.
A screencast of rails-sh
I just created a screencast of rails-sh. You can see it’s quickness. rails-sh is a mini shell for rails3.
Ruby on Rails Support Discontinued in Ne...
Ruby on Rails Support Discontinued in NetBeans IDE. Read this e-mail I received from The NetBeans team.
BetterAr
I just released BetterAr. A forward looking replacement for ActiveRecord::Base.all, .first and .count. Somewhat similar to what DataMapper does. (as far as the public api goes)
Stop being a tourist!
About a month ago I saw a post on the Rails Best Practices site regarding comments and magic codes. The point of the article is when you meta-program in Ruby you should write comments that reflect dynamically generated code. I think this is a terrible idea and I explain in this blog post.
Gistup: Use The Gists
Sometimes is nice to use some GitHub Gists in your own script. With Gistup it’s more than possible!
More Thoughts on Require Using Expanded Path
Neeraj Singh’s last post on this topic produced some interesting discussion. Checkout out his follow up blog post which contains some additional exploration and some new opinions on the matter.
Adding close link to flash messages
I just wrote a new post about a trick I learned recently.
webloc - Read OS X's .webloc URL files
I needed to be able to read .webloc files (the files created when you drag URLs to the desktop in OS X) so I created webloc - a library that lets you both read and write said files. Works on Ruby 1.9.2 and 1.8.7 and reads both Safari and plist style .webloc files.
Handling various rubies at the same time in your machine with RVM – Ruby Version Manager
If you have to handle various ruby projects with various different rubies and you don’t want to go crazy managing the dependencies, you should start using read this tutorial and start using RVM. If you don’t have this need yet you should also read it as RVM makes playing with new and different rubies and gems a breeze!
From Test::Unit & Shoulda To MiniTest::Spec & MiniShoulda
The road to faster tests is switching to MiniTest. For those using Shoulda, my new gem MiniShoulda is built on top of MiniTest::Spec. My latest post covers some of the details of the new gem and moving to MiniTest.
Ruby on Rails Best Practices
Darcy’s post regarding Ruby on Rails Best Practices featured on Sitepoint.
irb anywhere
ir_b is a simple gem to start irb session with the current context by calling ‘ir b’.
Functional Widgets with Rails, JavaScript and JSONP
Have you ever wanted to build fully-functional Rails ‘widgets’ that someone can include in their web app just by dropping in a single JavaScript source file? [more inside]
will_paginate + redis + rails 3
A quick post on paging with will_paginate and Redis on Rails 3. http://wiseleyb.tumblr.com/post/2896145167/willpaginate-with-redis-on-rails-3
Easy data caching in Rails 3
I just published an article that shows how to easily do data caching in a model or controller.
Easy data caching in Rails 3
I just published an article that shows how to easily do data caching in a model or controller.
rails-sh is a mini shell for Rails 3
I just released rails-sh. It’s a mini shell for Rails 3 that provides a uniform and quick access to commands like ‘rails g’, ‘rails c’, ‘rake routes’, etc.