Twitter Updates

Saturday, 13 March 2010

Sinatra set_cookie started failing

I recently started getting this error [1] in my Sinatra web application (after upgrading from 0.9.4 to 0.9.6)
[1] undefined method `set_cookie' for 

Basically instead of
set_cookie("foo", "bar")
We now have to use:
response.set_cookie("foo", "bar")


Source gitr

No comments: