Different layouts

hey!

i have a little question, how can i put different layouts for the
actions in a controller? for example in my login controller, i have an
action, that i dont want to have the same layout as the others.

i tried something so:

layout ‘admin’, :except => [:show_users]

it works, but show_users, doesnt have any layout. where shall i put the
layout for show_users? (it doesnt work, if i put a layout in the action)

thanks!!

def thisismyaction
render :layout=>‘mycustomlayout’
end

Is that what you are looking for?

demonio de los andes
escribió:

hi matias!

that doesnt solve my problem, i become more errors.

there is nothing more simple, like i dont know:

layout ‘admin’, :except => [:show_users, :layout => “admin”]

or something like so?

ty!!