To do this, I would put this at the top of my routes:
match ':user_id/:thread_id/:id', :to => "comments#show"
comment_id id, "Rails Way", id id. .
, :as:
match ':user_id/:thread_id/:id', :to => "comments#show", :as => "comment"
comment_path/comment_url , , .