Skip to content

Instantly share code, notes, and snippets.

@yeah
Created April 20, 2010 07:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeah/372131 to your computer and use it in GitHub Desktop.
Save yeah/372131 to your computer and use it in GitHub Desktop.
def auto_link_and_truncate(text)
auto_link(h(text), :html => {:target => '_blank', :rel => 'nofollow'}) do |t|
truncate(t,30)
end
end
@schorsch
Copy link

def short_link(text)

@yeah
Copy link
Author

yeah commented May 1, 2010

hm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment