Displaying 1 result from an estimated 1 matches for "sitelayout".
Did you mean:
filelayout
2006 Sep 07
6
Template "specialisation"
I want to use a sitewide default template and use a specific version in some
controllers to have a good DRY approach to my layout. Those controllers
should add a little bit more HTML before rendering the results of the
actions, in order to avoid copying the entire sitelayout every time.
How can I do that? Currently my code is like this:
class WelcomeController < ApplicationController
#before_filter :show_options
layout ''mydefault''
def contact
render :partial => "contact"
end
pr...