#diy
2 posts tagged diy. Clear filter
-
How To Write Your Own Time Comparison Function in Ruby Like time_ago_in_words Without Rails
-
Roll Your Own Full Page Caching in Sinatra
It's as simple as this. Use File.basename to make sure that params[:page] doesn't contain path information. This way arbitrary requests aren't able to traverse the filesystem. Then just check to...