upload and Read a xls or csv file rails 3

Hello guys, I'm trying to make a app that the user can send a xls or csv file and I can catch the informations inside this file, but I don't know how I can do this.

Thanks for the help.