Hey Phil,
> I could be wrong, but I don't think :text works with :layout. I
> always thought :text meant just render the darn text and nothing else
> thank you very much!
"render :text => output"
does exactly that.
render :layout => "application", :text => "some output"
actually renders the layout including "some output"
render :layout => "application", :text => proc { ... }
renders the layout, too but does not evaluate the proc method.
> What about setting the output of 'output' to @output_from_cms and then
> referencing that in your layout?
Yup, that works. However, since it is a large amount of data, I'd rather
not want to save it to memory first. Is there no way to stream text
including the template?
Thanks
Patrick
--
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
-~----------~----~----~----~------~----~------~--~---