• P
    Allow layout fallback when using `layout` method · 18ceed20
    Prem Sichanugrist 提交于
    Rails will now use your default layout (such as "layouts/application") when you specify a layout with `:only` and `:except` condition, and those conditions fail.
    
    For example, consider this snippet:
    
        class CarsController
          layout 'single_car', :only => :show
        end
    
    Rails will use 'layouts/single_car' when a request comes in `:show` action, and use 'layouts/application' (or 'layouts/cars', if exists) when a request comes in for any other actions.
    18ceed20
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 287.9 KB