Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def render_template(name, default = nil)
- layout_path = "../templates/#{request.domain}/layout.html"
- render :template => "templates/#{request.domain}/page_#{name}", :layout => layout_path
- rescue TemplateNotFound
- render :template => "templates/#{request.domain}/#{default}", :layout => layout_path
- end
Add Comment
Please, Sign In to add comment