[Rails] Is it possible to use a site layout *without* a controller?
I'm in the process of doing some front-end design and planning, and
the thought has occurred to me that I'd like to make use of the
layouts in my Rails application for static assets. In other words,
some one may go to example.com/stuff, and instead of bringing up a
specific controller and action, I'd like it to simply render a
straight-up HTML page *inside* the yield block of a given layout.
Is there any way to do this without using a controller? It seems like
a bit of a waste of space and resources to fire up a full controller
stack just to have the benefit of static HTML and assets being
rendered inside a layout's yield block.
Would Rails Metal be the only way to do this, or is there a simpler
solution? Thanks for any information you can provide!
--
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