Search code examples
ruby-on-railsrubyaptana3webrick

"No such file or directory - /public/settings.xml" in Rails when the file is there


As you can see, the file is there. I made sure to switch rights to that file to everyone - anythiig I am missing that is obvious?

enter image description here

enter image description here

Ruby 1.8.7 Rails 3.0.3


Solution

  • You shouldn't be using / before public, as it is searching for public directory in root , so for example, if you wanted to remove the file from a terminal you would say:

    rm public/settings.xml