The key should already be split by the router system and be available as params[:key] by here.