Try reading the following:

http://api.rubyonrails.org/classes/ActionController/Streaming.html
http://www.rorexperts.com/send-data-and-send-file-in-rails-t1648.html

You should be able to solve it. :)

Your code just creates/opens /home/delmed/Bureau/users.xml on your 
machine.
To make it downloadable use send_data or send_file as in the example 
above.

You can start by

@users = User.find(:all)
and do a @users.to_xml as the output data on the example found on the 
link above.

Good luck. :)

-- 
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 [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.

Reply via email to