/ Published in: Ruby
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
list = Dir.entries(@fullpath2images) for l in list if /^plan_#{params[:id]}_(sm|big)_.*/ =~l File.delete(l) end end
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
list = Dir.entries(@fullpath2images) for l in list if /^plan_#{params[:id]}_(sm|big)_.*/ =~l File.delete(l) end end