Reading a local Rails file
begin f = File.open("#{RAILS_ROOT}/public/#{@mediaitem.path}","r") textcontents = f.read ensure f.close end return textcontents
begin f = File.open("#{RAILS_ROOT}/public/#{@mediaitem.path}","r") textcontents = f.read ensure f.close end return textcontents
xpath: //wheel[last()=position()]
=>