This project is archived and is in readonly mode.
render :text => Proc
-
Richard Fairhurst
I'm getting the same issue.
Also seems to be documented at:
http://groups.google.com/group/rubyonrails-core/browse_frm/thread/6...
http://groups.google.com/group/rubyonrails-talk/browse_thread/threa...
http://live.prokhorenko.us/2009/05/issues-with-ror-streaming-from.htmland to be 2.3.2-specific.
-
Rohit Arondekar
Tried on Rails master.
I don't get any errors but this is what I get in the browser:
#<Proc:0x00000004d75b78@/home/rohit/bugmash/testapp/app/controllers/foos_controller.rb:3 (lambda)>This is expected or should the output be "Blah"?
-
David Trasbo
- Assigned user set to Ryan Bigg
I followed the steps describe in the Pastie using Rails 2.3.8 and it works beautifully.
I don't think
render :textwith aProcis supposed to work in Rails 3 - it is not mentioned in the documentation. It probably simply callsto_son whatever is passed to it and outputs that.This ticket can be closed. If anyone wants this behavior back they can open a separate ticket with a patch.
-
Ryan Bigg
- State changed from new to invalid