specifying separate layouts within controllers and methods
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
class FooController < ApplicationController
|
||||
layout 'bar'
|
||||
|
||||
def index
|
||||
end
|
||||
|
||||
def count
|
||||
@data = [1,2,3]
|
||||
render :layout => 'count'
|
||||
end
|
||||
|
||||
end
|
||||
|
Reference in New Issue
Block a user