Displaying 2 results from an estimated 2 matches for "source_file_path".
2006 Mar 01
2
error: uninitialized constant
total rails nuby here. I have a table "thumbnails", hence the model
Thumbnail. I''m extending the Thumbnail class with a few constants
needed for thumbnail cropping:
class Thumbnail < ActiveRecord::Base
SOURCE_FILE_PATH = "path/to/source"
TARGET_FILE_PATH = "path/to/target"
TARGET_WIDTH = 100
TARGET_HEIGHT = 100
end
Now, in my controller i''m trying to access these:
source_path = Thumbnail::SOURCE_FILE_PATH
however, i get an error:
uninitialized constant SOURCE_FILE_PATH
/usr/local...
2011 Oct 04
1
texi2dvi problem when compiling incorrect Latex code
...hin that project but DO NOT want to Sweave it.
It's pure Latex. Via the external tools configurations I set up 2 different
versions to ensure that my latex document is processed correctly.
Version 1 (System Call):
library(tools)
setwd("${container_loc}")
file = "${resource_loc:${source_file_path}}"
try(system(paste("texi2pdf", shQuote(file)), intern=TRUE))
Version 2 (R Call):
library(tools)
setwd("${container_loc}")
texi2dvi(file = "${resource_loc:${source_file_path}}", pdf = TRUE, quiet =
FALSE)
Both versions work well as long as there is no error in...