S
Saurabh Peshkar
Hi All,
I want to create a directory, i used command:
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2/public3")
but its not working. don't know the reason.
So i tried for:
Dir.mkdir("#{RAILS_ROOT}/public/public1")
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2")
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2/public3")
and it worked.
Can the code be minimized?
Please suggest me, can the three lined code be made one lined?
Thanks
Saurabh
I want to create a directory, i used command:
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2/public3")
but its not working. don't know the reason.
So i tried for:
Dir.mkdir("#{RAILS_ROOT}/public/public1")
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2")
Dir.mkdir("#{RAILS_ROOT}/public/public1/public2/public3")
and it worked.
Can the code be minimized?
Please suggest me, can the three lined code be made one lined?
Thanks
Saurabh