Yes.

You need to say render p.call if you want the result to be the result  
of the proc's execution.

Julian.


On 08/10/2008, at 3:47 AM, Joe Van Dyk wrote:

>
> class Test < Application
> def file
>   render File.open("/etc/passwd")
> end
>
> def proc
>   p = Proc.new { "hello" }
>   render p
> end
> end
>
>
> Both those actions don't seem to render anything to the client.
>
> Am I understanding something incorrectly?
>
> Joe
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to