I keep getting this error:
uninitialized constant GetxmlController::Xmlparse
my code for the class looks like
require "rexml/document"
include REXML
Class Xmlparse
def parsetime
xmlfile = File.new("colors.xml")
xmldoc = Document.new(xmlfile)
root = xmldoc.root
return root
end
end
my controller looks like:
class GetxmlController < ApplicationController
def findxml
@hxml=Xmlparse.new
@[email protected]
end
end
So what am I doing wrong here?