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.
biceps: versioning your API with ease
There’s been a lot of debates lately on how (and whether) one should version his/her API with the Accept header, so we extracted our Rails routing constraints into a gem: biceps
Spree Raises $1.5 Million for Open Source eCommerce
Tech Crunch just announced a $1.5M seed investment in Spree Commerce, Inc. Spree is the leading open source e-commerce platform for Ruby on Rails. Don’t worry - its going to stay 100% open source. You can read the official Spree announcement for more details.
It’s time to clean up your mess: refactoring Cucumber step definitions
Don’t let your features/step_definitions folder become a mess! Learn how to refactor your Cucumber step definitions to be more readable and maintainable.
Challenge: methods taking multiple blocks
Ruby makes it trivial to pass a block of code into our method calls. But what do we do when a method needs two blocks of code or more? In this week’s Codebrawl, we challenge you to write the most elegant way to allow a method to take multiple blocks. Oh, and we have a great prize for the winner!
Your estimates suck
Releasing early and often? Respect The Iron Triangle or your code quality will suffer.
AdhearsionConf 2011 in San Francisco Begins!
Watch the live stream here: AhnConf Live. Come and learn about the latest and greatest for realtime communications in Ruby and where Adhearsion is headed.
The new Ruby Toolbox has landed
-> Check it out
Podcast: Chris Nelson on writing beautiful front end code
Chris Nelson talks about <a href=http://www.engineyard.com/podcast/s01e43-chris-nelson>how MVC is shifting from server side to client side, and how Backbone.js and CoffeeScript are transforming front end development</a>.
wrapr allows you to inject behavior into any existing class
Wrapr allows you to modify the behavior of any instance method (even #initialize) with before, around and after filters. The gem allows you to modify arguments before they reach instance methods and allows you intercept/modify returns. As it was originally developed to wrap Exception to trap/debug specific exceptions deep in business logic, Wrapping a base class wraps all descendant classes.
Rails 3.1.1 is out
Rails 3.1.1 is out! Upgrade your Applications!! [more inside]
Turn to Tap Out
The wheels on the Turn bus aren’t going quite so round and round. So I decided to score my own ride. Checkout TapOut, a TAP-Y/J consumer reporting tool, and MiniTap, a TAP-Y/J reporter for MiniTest. It’s like one of those uber-cool kit cars your neighbor’s son uses to pick up the chickies. Of course, like all good mechanics, we’re still tweaking the engine a bit –mainly the current set of report formats are riding a tad thin and rough, but they’ll be polished up as time permits (feel free to grab a wrench). Peace out.
RVM and REE installation
Recently I had given session on RVM and REE installation. Click here for more information.
A review of Crafting Rails Applications
I just published a review of crafting rails applications.
Rails 3.1 docs for Dictionary.app and RDoc Dictionary.app formatter
Updated version of Rails 3.1 documentation for Dictionary.app is now ready for download. [more inside]
Cache Money: Why Utilize Caching?
Danish Khan’s blog post walks through when it’s wise to implement caching, and how to decide which type of caching is best for your app.
Guard - Rails Best Practices
BDD your Rails Best Practices checklist alongside your specs with Guard. [more inside]
Creating own small ruby integration server – Part 2 – Handling Rubies and gemsets management easier
Handling Rubies and gemsets management easier - second part of my tutorial about building from scratches small integration server for development purpose.
rails_best_practices 1.1.0 released
I have released rails_best_practices 1.1.0, adding “restrict auto-generated routes” check, check out the release announcement.
What's "new" in Ruby
New on the Collective Idea blog: a quick introduction to Class.allocate, a class method you can use to allocate space for a new object and skip initialization of that object.
How to install rbenv outside of the $HOME directory
rbenv is the new black when it comes to managing your Ruby environments, but how do you install rbenv outside of the $HOME directory? You can probably click on the link to find out…
Creating own small ruby integration server – Part 1 – RVM Ruby version management directly from Ruby
I just started creting own small Ruby integration server software here and I’ve decided to make tutorial out of it. Check it out.
I just released a gem to consume SurveyG...
I just released a gem to consume SurveyGizmo’s new rest API.
Web apps are dead, long live web apps!
Interesting article on the way our community is shifting to backbone and coffeescript on top of rails.
simple_cacheable gem
I just released simple_cacheable gem, it provides the cache apis for find(id), find_by_xxx, instance method and association, here is an introduction blog post.
Rails Misapprehensions: Helpers are shit.
The current helper implementation in Rails is not good. This post explains why and how to get out of this misery using draper, cells and some different approach.