changed some variables to have a larger scope to pass more information to the view.
This commit is contained in:
parent
52878f4ecb
commit
8524ee1a79
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue