changed some variables to have a larger scope to pass more information to the view.

This commit is contained in:
Andrew Davidson 2009-10-30 00:37:14 -07:00
parent 52878f4ecb
commit 8524ee1a79

View file

@ -1,9 +1,10 @@
class ScreenshotController < ApplicationController
def single
@fpath = "screenshots/" + params[:filename]
fabsolute = RAILS_ROOT + "/public/images/screenshots/" + params[:filename]
@fsize = IO.read(fabsolute)[0x10..0x18].unpack('NN')
@fname = params[:filename]
@fpath = "screenshots/" + @fname
@fabs = RAILS_ROOT + "/public/images/screenshots/" + @fname
@fsize = IO.read(@fabs)[0x10..0x18].unpack('NN')
respond_to do |format|
format.html