From: Olivier Moratin Date: 2009-05-09T03:49:51+09:00 Subject: File object. Undefined methods Hi I'm doing the following in the console of a Rails app >> file = File.open("#{RAILS_ROOT}/xml/feed.xml") => # >> f.dirname NoMethodError: undefined method `dirname' for # I've tried other methods written in the doc of the File class to no avail. What am I missing? Thanks -- Posted via http://www.ruby-forum.com/.