Posted on July 10, 2007
Dave Naffis blogged about this neat plugin that handles all kinds of session manipulation stuff, including the ability to call a method when you expire a session.
This was just what the doctor ordered for me – I had some cleanup code to call on session expiration, and darned if I could figure out how to do this…
With the SessionExpiration plugin it’s a piece of cake
class SomeController < ApplicationController
expire_session_in 5.minutes, :after_expiration => session_expiry
def session_expiry
# Do awesome cleanup operations here!
end
Daves blog: http://www.naffis.com
Install SessionExpiration like this:
script/plugin install http://svn.intridea.com/svn/public/session_expiration/
Filed under: Ruby on Rails |
Posted on July 09, 2007
I contributed my first ever open source patch this weekend, to Geoffrey Grosenbachs awesomely simple calendar_helper Rails plugin.
You can install this into your current rails app with:
script/plugin install http://topfunky.net/svn/plugins/calendar_helper
My humble patch added the ability to display the current date on the calendar like so (the magic blue square):

Something fun for me was how amazing it was to create a patch using subversion – you just type
svn diff > patch_file_name.diff
And it creates this wonderful magic patch file that details all the changes you’ve made! I just had to send this to Geoffrey and he did some subversion magic to easily commit my changes.
I think this creating patch thing is gonna get addictive…
ALSO I note that Tom Armitage added some functionality into this patch as well to do with what markup the calendar uses. (It was also his first patch experience).
Find him here:
Another day, another release – updated calendar_helper
Filed under: Ruby on Rails |