/bin/rm: Argument list too long tmp/sessions/ruby_sess.*
Well this happens when there are too many files to process:
Best way in this case is to do batch processing:
Sample command:
find . -name 'ruby_sess.*' -print0 | xargs -0 rm
Well this happens when there are too many files to process:
Best way in this case is to do batch processing:
Sample command:
find . -name 'ruby_sess.*' -print0 | xargs -0 rm
RAILS_ROOT gives you relative path within the applications it works fine as far as you need the path within rails application.
How about getting absolute path to rails folder?
I found one way, and thats from the ENV hash.
You can use ENV[’PWD’] to find absolute path to the rails folder.
Any other ways ??
*Update 4th Oct 2007*
Dir.pwd is a better way
page.redirect_to :action => ‘thanks’, :p1 => @g_resp.params[”_code”], :p2 => @r_id
Powered by WordPress