specifying separate layouts within controllers and methods

This commit is contained in:
Dan Buch
2011-08-09 06:41:10 -04:00
parent c16c1361d3
commit 3f5e481906
6 changed files with 32 additions and 3 deletions

View File

@@ -1,5 +1,12 @@
class FooController < ApplicationController
layout 'bar'
def index
end
def count
@data = [1,2,3]
render :layout => 'count'
end
end