Rails, use the content of file in the controller
- by Denis
Hi,
I've a file in the config directory, let's say my_policy.txt.
I want to use the content of that file in my controller like a simple string.
@policy = #content of /config/my_policy.txt
How to achieve that goal, does rails provide it's own way to do that?
Thanks