reading a file from my application (silently)

What are your goals with this approach? Is this a configuration thing?

If so, you might look into using YAML for config files and then you
can load up your yml file and define variables to access in your
application.

Robby

Robby Russell wrote:

What are your goals with this approach? Is this a configuration thing?

If so, you might look into using YAML for config files and then you
can load up your yml file and define variables to access in your
application.

Robby

--
Robby Russell
Chief Evangelist, Partner

PLANET ARGON, LLC
design // development // hosting

http://www.planetargon.com/
http://www.robbyonrails.com/
aim: planetargon

+1 503 445 2457
+1 877 55 ARGON [toll free]
+1 815 642 4068 [fax]

Thanks for your response. The file contains an RSA private key PEM file.
I need to read it to digitally sign an authorization token. There may be
better ways to do this than reading the file in a controller method, but
I wanted to start simply. If it was Jaav, I would read the file in the
servlet init method.Not sure what the RoR equivalent should be. I might
put something in the environment.rb file ? Basically, something like
define the file and then define a constant KEY = file.read ?