it work good :) thanks but it dont give me the dialog box to choose location to save the file !!! its normal?
2011/5/26 Adel Mediouni <[email protected]> > thanks man > i will take a look and try to solve it :) > > 2011/5/26 Cris F. <[email protected]> > > 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. >> >> > > > -- > Mediouni Adel > Tunis > www.metal-tn.xooit.com > -- Mediouni Adel Tunis www.metal-tn.xooit.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.

