On Jun 9, 6:52 am, Bohdan Pohoriletz <[email protected]> wrote:
> post '/users/create' do
> RestClient.post("http://localhost:3000/users",
> :user=>params['user'])
> redirect '/users'
> end
>
> I would like to sent file to server in this action.
>
> So the question is: How to sent file as a param to server ?
> I'm using mozilla firefox 3.6 so I can't get full file path to read it
Looks like you can pass a :multipart option to RestClient to tell it
that the post should be multipart.
Fred
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.