Unique cookie name?

assuming you have a instance variable @post that contains the curent
post that was voted on, i would guess:

cookies["post_" + @post.id] = {:value => "yes", :expires =>

err ... more precisely

unless cookie["rated_post" + @post.id] = "yes"
  #do rating stuff here ....
  #then set the cookie
  cookies["rated_post_" + @post.id] = {:value => "yes", :expires =>

though, as this could be easily cheated on, i would suggest to store
this information in a "ratings" table and check fi the user has an
entry there for the given post ...


I’ve got an app that worked pretty well with 3 dispatchers, and now
that I added some (time consuming) webservices on top of it, I would
like to dedicate a few dispatchers to a specific controller (the
webservices one).

I came up with this config (using lighttpd. remote is my webservice

$HTTP[“url”] =~ “^/remote/” {

fastcgi.server = ( ".fcgi" => (

“localhost-8003” => ( “host” => “”, “port” => 8003 )