Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
Unwrap text
def to_param "#{id}-#{title.strip.downcase.gsub(/\s|[^a-zA-Z0-9\-]+/, '-').gsub(/\-+/, '-').gsub(/^\-|\-$/, '')}" end
Pasted April 04, 200812:53PM EDT
Download | View
Paste again
Edit paste