Tuesday, June 29, 2010

[Rails] Re: Referencing a Layout

Doug Jolley wrote:
> My understanding is that Rails generally expects layouts to be files
> and any reference to a layout is a path to the appropriate file.
> Thus, a layout that is generated at run time and stored only in memory
> (as a variable), can only be loaded by first writing the layout to a
> temporary disk file and then loading it from there. Am I correct in
> my understanding?
>

I believe so. But why would you ever do that? Layouts are designed to
hold the parts of your view that don't change. If they don't change,
you shouldn't need to generate them on the fly.


> TIA.
>
> ... doug

--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate