You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
227 B
19 lines
227 B
13 years ago
|
class FooController < ApplicationController
|
||
13 years ago
|
layout :figure_out_layout
|
||
13 years ago
|
|
||
13 years ago
|
def index
|
||
|
end
|
||
|
|
||
13 years ago
|
def pretty
|
||
|
end
|
||
|
|
||
|
def figure_out_layout
|
||
|
if action_name =~ /pretty/
|
||
|
'pretty'
|
||
|
else
|
||
|
'standard'
|
||
|
end
|
||
13 years ago
|
end
|
||
|
|
||
13 years ago
|
end
|