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.
Rails Internals: Inside Active Model Attribute Methods
First in a series of posts about Rails internals: Rails Internals: Inside Active Model Attribute Methods.
Cached Resource Updated
Cached Resource has been updated to be a little smarter about caching collections. [more inside]
Campy - a tiny Campfire Ruby client so you can get on with it
I released campy yesterday to slim down my dependency chain in a few projects (no requirements for streaming, locking rooms, etc.). It’s implemented on top of Net::HTTP and only requires the multi_json to deal with older Ruby versions. The Ruby library is pretty simple and it ships with the campy command for command line scripting. $ campy speak 'So enjoy!'
ActiveRecord::Base.store - Pros, Cons, and Usage
With the release of Rails 3.2 came a host of new features, in particular ActiveRecord. In this post, I discuss some of the pros and cons which come with using ActiveRecord::Store.
Why Is My Web Service API Crappy?
Christopher Miles has a great article: Why Is My Web Service API Crappy? and it’s definitely worth a read if you’re building externally facing APIs.
Global Hack Day #3 is today! (Apr 5)
The idea of having weekly or monthly hack nights has worked great for Ruby users groups all over the world, but the folks at Mendicant University feel like the internet deserves a similar kind of event. [more inside]
How to protect your model's fields + CanCan reinvented
We’ve released Heimdallr, comfortable black-list security restrictions for an ActiveRecord objects on a field level + controllers protection. Read the introduction article. [more inside]
Super Charge your Rails App with Rack Cache and Memcache
Get more performance out of your Rails app using Rack::Cache and memcache (with graphs, yay!). Works with Heroku!
Measuring Site Speed with Navigation Timing
If your job is to think about web performance, then you need to approach it from a users perspective: use Navigation Timing to measure true latency, leverage Site Speed reports in Google Analytics, and focus on the shape (distribution) of the performance data! A hand’s on look at the spec, and sample GA reports.
Building and implementing a Single Sign-On solution
In my latest blog post I show how to implement a SSO solution.
DSL to write pure web API applications
For more than a year now, I’ve been developing a DSL to write web services. The DSL has been used in production on major PS3 games and other web applications. To help people getting started with the DSL, I released a ‘mini-framework’/example application using the DSL on top of Sinatra, check it out. [more inside]
Getting Rid of Code Smells
I started a series of posts about refactoring towards removing common code smells. Here’s the first post about the attribute smell: solnic.eu/2012/04/04/get-rid-of-that-code-smell-attributes.html
debugger - fork of ruby-debug19 that works on 1.9.2 and 1.9.3
No more painful installs for a 1.9.3 debugger! Just released debugger 1.0.0 which should install easily for rbenv/rvm rubies. This fork also doesn’t download ruby source during the install. For more, see it’s readme.
VIM for Rails developer - An experience
Santosh wrote a neat blog on his experience on VIM and how he overcame the hurdle of not being productive syndrome VIM for Ruby on Rails developer - An experience.
Why I Built Ruby Off Rails
I just launched Ruby Off Rails because Ruby is awesome, and people should learn it before copying/pasting code into Rails. Here’s my story why I built it.
Rails isn't for beginners
I’ve just written a post on Rake Routes: Rails Isn’t For Beginners
Exploring Ruby’s Regular Expression Algorithm
Ever wonder what happens inside of Ruby when you execute a regex search? Find out here: Exploring Ruby’s Regular Expression Algorithm.
Konacha: JavaScript Testing on Rails
For those looking to test heavy (Backbone-type) JavaScript applications on Rails, I’ve posted a Konacha tutorial.
Starting today: private beta for phrase i18n app
Starting today, we are giving away the first beta invites for phrase, the new app to manage i18n and l10n. Sign up for free and get an account to see what it is all about at: [more inside]
MacRuby – Create iCal event with alarm with Ruby
With MacRuby it’s so easy to interface with Mac applications like iCal. See here how it works.
Figaro: Simple Rails app configuration
I just released the first version of Figaro, a gem for configuring your Rails apps. Figaro helps you keep the private stuff out of your code, making it easy to open source your app.
rolify 3.0 - Role management library with resource scoping w/ Mongoid support
I just released rolify 3.0 gem. It introduces the Mongoid ORM support in addition of the ActiveRecord adapter. This comes with a complete re-design of the library and heavy code refactoring. Specs coverage has been enhanced as well. If you want to see how to integrate rolify with Devise (authentication library) and CanCan (authorization library), check out this tutorial.
First usable version of CoffeeTags has been released
I just released new version of CoffeeTags - CTags-like tool for generating CoffeeScript tags. [more inside]
Contributor-friendly gems
Are you a gem author bundling third-party code (JavaScript or CSS)? Make your gem contributor-friendly by using Git submodules.