Hi. i have this runnig:
class MainController < ActionController::Base
def load_data
end
end
From my linux box, i do:
wget http://localhost/main/load_data --post-file file_name.txt
Wich works great! the proble is, in the params, i receive:
{ "file_name.txt contents" => "", "action"
=> "load_data", etc... }
Do anybody knows a better way to do the same thing but in a way that
could produce the params:
{ "file_data" => "file_name.txt contents",
"action" => "load_data",
etc... }
or something like that?
Thanks!
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---