Tuesday, March 27th, 2007
CrowdRules is a Ruby on Rails website that lets the community rank videos.
Igal Koshevoy told us about the new site that is in beta:
CrowdRules is a “crowd-powered content recommendation engine”. We use Ajax in a few, carefully-selected parts of our application to improve the user experience. Our application is written using Ruby on Rails and implements Ajax features using RJS templates and the Prototype library. These tools are a pleasure to work with and make it easy to get things done right, so we highly recommend them.
Here are some of the highlights of our use of Ajax:
Video creation: CrowdRules tries to make it easy for users to add exciting content. We use AJAX to save users from having to fill out long forms that specify the video’s name, embed HTML and such. Instead, our users simply paste a video’s URL into a form that invokes an Ajax-enabled action that parses it, identifies the media provider (e.g. YouTube) and uses that provider’s API to return a pre-populated form automagically. The form only displays fields the user needs to fill out, which vary depending on whether the video was found, was already in our system, what provider serves it, etc. When the user submits the form, all fields are validated against rules unique to that state and this prevents broken submissions by making sure that the embed HTML matches an actual video at the media provider, that the entry has a title and so forth. The combination of AJAX bindings, Prototype, and Rails features like ActiveRecord validations let us make this friendly form quickly.
Posted by Dion Almaer at 4:11 am