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 =>
30.days.from_now}

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 =>
30.days.from_now}
end

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 ...

Hi

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
controller)

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

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

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