daily pastebin goal
14%
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. get '/' do
  2.   erb :index
  3. end
  4.  
  5. get %r{/(.+)} do
  6.   @url = params[:captures]
  7.   erb :url
  8. end
  9.  
  10. post '/clippify' do
  11.   @url ||= params[:clippy][:url]
  12.   @bullet_1 = params[:clippy][:bullet_1] || "Share this with friends"
  13.   @bullet_2 = params[:clippy][:bullet_2] || "Bookmark this link"
  14.   redirect "/#{@url}"
  15. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top