Category Archives: Cookies
Remove A Shared Cookie
What's the worst part of making cookies? Cleaning up. Initially, I had set up code to set a cookie in the simplest fashion possible: cookies[:my_cookie] = {:value => 'test', :expires => 1.year.from_now} Cleanup was a snap: cookies.delete :my_cookie That was … Continue reading
Requiring and Testing Cookies
Requirement: Users must have cookies enabled to use the site. If they don't: give them some sort of graceful warning to let them know there's going to be trouble. Doesn't sound too bad… it ended up being much more of … Continue reading
Filed under Cookies, rails, Ruby, Test Driven Development (TDD)