Rails Plugin: role_requirment, Clean role-based security for restful_authentication

Published on

I just found a very useful plugin role_requirement to manage roles in rails app. RoleRequirement focuses on a simple approach to role-based authentication. RoleRequirement leverages the power of !Ruby to strike a marvelous balance between simplicity and flexibility. Features: * A user can have many roles or one role * Full test helpers to make … Continue reading Rails Plugin: role_requirment, Clean role-based security for restful_authentication

Ruby 1.9.1: Hash

Published on

In ruby 1.9.1 has many changes for Hash some useful changes are below: RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 Now Hash preserves order: RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 Better to_s method(similar to hash.inspect). RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 hash.each and hash.each_pair RUBY_VERSION => 1.8.6 RUBY_VERSION => 1.9.1 hash.select now returns hash instead of … Continue reading Ruby 1.9.1: Hash