search for: maintain_controller

Displaying 1 result from an estimated 1 matches for "maintain_controller".

2010 Jan 22
0
Routing/File Upload/Put vs. Post puzzle
...s: <%= submit_tag "XML file" %> <%= submit_tag "YML file" %> <% end %> </p> </li> notes: There are two buttons in this form, one to import it from an XML file and one from a YML file. Is that somehow making it sick? maintain_controller.rb: def import_file begin if params[:importFile].nil? flash[:error] = "Yes: Import failed because file was not specified." redirect_to :back [...] snip Notes: when I break here, params[:importFile] is a text string with the file name, NOT a File:: object. Als...