Read up on send_file, send_data (and then things like X-SendFile and X- Accel-Redirect).
Fred On 8 Mar 2009, at 08:58, Fresh Mix wrote: > > I trying to get http://festivaltts4r.rubyforge.org/ to work. > > "Hello world!".to_mp3("/tmp/xxx.mp3") > > With this I can generate a mp3 file, but how can I return it to > browser? > > So if I open URL http://xxx.com/myrailsap/sayhello/ > It generate mp3 file and return it to browser. No html code, return > only > mp3 file. > -- > 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 -~----------~----~----~----~------~----~------~--~---

