layout in application controller

hi,

not sure why this is not working:

layout :resolvelayout

dev resolvelayout

if 1==2

“a”

else

“b”

end

end

I did restart sever…

thx

What does "not working" mean?

What happens? What do you expect to happen?

the function aka method does not get called. if I insert a print or something nothing shows in the log.

I assumed you can set layout in application controller…

You absolutely can.

Aside from the misspelling and the nonsense "condition" your method should work (be called); what happens if you change e.g.

  layout :resolvelayout

to

  layout :b0rk3d

You should get an error for an "undefined local variable or method".