sublimetext2 - Sublime running Ruby code can't open a spreadsheet -
my code:
require 'spreadsheet' spreadsheet.client_encoding = 'utf-8' book = spreadsheet.open "searchdata1.xls" puts book i tried running in sublime got error:
not locate workbook, possibly empty file passed (runtimeerror) running same file through command line executes program correctly no errors. can me figure out why sublime can't run code?
check output of running puts dir.pwd sublime , pwd command line. operating on different directories. may try specifying absolute path.
Comments
Post a Comment