RubyFlow : The Ruby Community Blog

Home   Submit   Sign Up   Log In   leaders   Twitter   RSS Feed  
 

nixterrimus — 3 posts

http://blog.dcxn.com

Ever accidentally commit some code, push it, and then find out that there were failing specs? Use a pre-commit-hook to avoid this pain, I wrote up a tutorial on Using pre commit hooks to run your specs
Over the weekend I came across a piece of code that had a $. variable in it. I was intruiged and spent an enjoyable hour playing with global variables. Ruby has quite a few cryptic dollar variables and I've written about them and attempted to demonstrate using many of them in Cryptic Dollar Variables & Their Meanings in Ruby
I recently needed to track user behavior to allow them to update resources but didn't want them to have to create an account. To accomplish this I built a visitor class and used cancan to manage permissions. I've written a short writeup about Managing Resource Ownership Without Creating an Explicit User Account