Hi I am trying to create a ruby on rails app to capture data from form and create a corresponding XML.I have created a dummy model class which is not extending active record
Do i have to do that .Below is the code and the error i m facing plz help
class RamOne
attr_accessor :name,:city
end
Controller
def start
@ramone = RamOne.new
end
def load_new
@ramone = RamOne.new(params[:ramone])
if @ramone.save
redirect_to :action => ‘gen_xml’
end
end
def gen_xml
@xml = Builder::XmlMarkup.new
@ramones = RamOne.find(:all)
render :layout => false
end
View captures name,city and has a submit action attached with load_new
error : wrong num of args(1 for 0 ) in load_new what is wrong?