Displaying 1 result from an estimated 1 matches for "extract_content".
2007 Nov 23
3
call model method out of the controller => undefined method
...ht with the Rails convention - i think so.
I''ve done little tools and scripts in Ruby before.
I''ve successfully uploaded a textfile. And now i want to extract some
filecontent to pass it into a database.
My Problem:
I can not start a given method of a given Model (=>
Metadata.extract_content(fileuri)). The error message ''undefined method
`extract_content'' for Metadata:Class'' is raised. But the method is still
there!?
My Controller Action:
#########################################
def upload
@schema_file = params[:schema_file]
@file = File.new(Fil...