I recently migrated my application across servers and set up my directories a little.
I ran into a problem where I had hard coded some paths, in particular, where I store all my attachments.
I moved my attachment directory in app_path/../attachments/*
Is there a variable that gets me my app_path, rails root directory, or whatever the correct term for it is?
And this variable needs to be accessible from controllers and models.
Thanks