RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Shoulda Macros for Testing (Not) Logged-In Filters

A new blog article: In any Rails app with a user system, certain actions are likely to have a before_filter to ensure that a user is either logged in or not logged in before accessing those actions. With Shoulda, we can easily create a few macros which make testing this behavior as simple as adding a single line to the test context for each action that uses one of these filters.

The Ruby Reflector

The Ruby Reflector is a Social News website for the ruby and rails programming community. It’s purpose is to promote quality content from great authors. Articles are scored and ranked based on data from the social web, and marked up with tags that allow for wiki-pedia style navigation through the content, and pivoting around interesting people, companies, products, and projects.

Driving Large Scale, Multi-Language Development With Cucumber

We use Cucumber to drive the development of our entire stack. Currently, this consists of 3 Java applications and a Rails application that interact with MySQL and a HDFS data store. Every single time we check in new code we build the entire stack in TeamCity and run our entire suite of functional tests against it.

rate and tag MongoMapper objects in Rails!

Just released two new Rails plugins for apps using MongoMapper: acts_as_mongo_rateable adds classic rating support plus weighted rates and bayesian averages… and acts_as_mongo_taggable adds standard tagging functionality with some roundup and statistics methods to help build tag clouds and ranked lists. Both have pretty thorough tests, but there are still likely bugs to shake out. Please fork, contribute, and send pull requests if you fix bugs, improve performance, or add new stuff.

Multiple sets of independent validations with validation_scopes

I cooked up ValidationScopes to expose the full power of ActiveRecord validations to more than one set of errors. Useful if you want to display different sets of errors in different contexts and still be able to save the object regardless of the additional validation sets’ state. It is about as loosely coupled as possible to ActiveRecord::Validations which means you can expect a smooth transition to Rails 3.

Loading older posts