This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Mar 18 12:32:35 -0700 2009 | |
| |
MIT-LICENSE | Thu Aug 28 17:09:21 -0700 2008 | |
| |
README.markdown | Wed Nov 12 15:46:14 -0800 2008 | |
| |
init.rb | Thu Aug 28 17:09:21 -0700 2008 | |
| |
lib/ | Wed Mar 18 12:32:35 -0700 2009 | |
| |
test/ | Wed Mar 18 12:32:35 -0700 2009 |
README.markdown
has_layout
has_layout is plugin that allow to choose the layout with options like
:except, :only, :if and :unless.
Instalation
1) Install the plugin with script/plugin install git://github.com/fnando/has_layout.git
Usage
1) Add the method call has_layout to your controller.
class PagesController < ApplicationController
has_layout 'site', :only => %w(faq feedback)
has_layout 'custom', :except => %w(faq feedback)
has_layout 'admin', :if => proc { current_user.admin? }
has_layout 'public', :unless => proc { !current_user.admin? }
end
Copyright (c) 2008 Nando Vieira, released under the MIT license







