Hi every one I need help , i have a application of http://www.projectlaika.org/ i need to store a xls file extension please provide how to do make a list of steps if possible and i hope to get reply as soon as possible. Thanks team
filemodel.extension = File.extname("/some/path/myfile.xls") # output is ".xls"
Do you mean instead that you would like to store an xls file? If so check out acts_as_attachment, attachment_fu or file_column plugins.
Ben