Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jul 19th, 2018
80
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
get '/delete/:id' do
ad = Ad.get(params[:id])
unless ad.nil?
path = File.join(Dir.pwd, "/public/ads", ad.filename)
File.delete(path)
ad.delete
end
redirect('/list')
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
Untitled
JavaScript | 22 min ago | 0.53 KB
🤑 G2A.com Free Gift Card Guide Apr 2024 FIX 🤑
GetText | 26 min ago | 0.39 KB
ntp_install.lua
Lua | 1 hour ago | 0.23 KB
Untitled
Pawn | 2 hours ago | 1.89 KB
util.lua
Lua | 4 hours ago | 2.41 KB
3x4.lua
Lua | 4 hours ago | 0.59 KB
Untitled
FreeBasic | 4 hours ago | 0.43 KB
2024-04-25_stats.json
JSON | 6 hours ago | 3.61 KB
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
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!