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.

Efficient, Immutable, Thread-Safe Collection classes for Ruby

Started as a spike to prove a point, Hamster has since morphed into something usable with Persistent Data Structure implementations of Hash, Set, List, and Stack. My primary concern has been to round out the functionality with good test coverage and clean, readable code. It’s still a work in progress but as I said, definitely useable now.

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.

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.

Loading older posts