Monthly Archives: June 2009

Deleting Session and Cookie entries

I’ve had a problem with clearing a users session and cookie information if they failed log on. In the past I’ve simply used: def clear_session session[:user_id] = “” session[:user_hash] = “” cookies[:user_hash] = “” end But this often fails to … Continue reading

Posted in Ruby | Comments Off on Deleting Session and Cookie entries

MS SQL server connection

I noted the couple of steps I need to connect to a Microsoft SQL server in my Rails Tiddly Wiki under “MicrosoftSQL”. I’ve need to fire up a Rails development system on another PC and have found that the gems … Continue reading

Posted in Ruby | Comments Off on MS SQL server connection

action_name_is?

I love it when a very small bit of code makes my life easier and my code simpler. Today I’ve defined a new helper method for one of my application and its done just that. This is the code def … Continue reading

Posted in Ruby | Comments Off on action_name_is?