Archive for December, 2008

Dynamic Scope Methods in Edge Rails

Posted in Rails, Ruby on Rails, ror on December 30th, 2008 by admin – 3 Comments

We perform simple queries using dynamic finder and for commonly used query logic we use named scope.

but we cant chain query conditions when using these dynamic finders.

With the addition of dynamic scopes, we can now have a way to both quickly specify query logic and chain further conditions.


We can now use class methods like scoped_by_user_name(user_name) and scoped_by_user_name_and_password(user_name, password) that will use the scoped method with attributes you supply.

Merb gets merged into Rails 3

Posted in Rails, Ruby on Rails on December 28th, 2008 by admin – Be the first to comment

Ruby on Rails and Merb team decided to