i assigned a different layout for my sign in and sign up view in the application_controller like this:
layout :layout_by_resource
def layout_by_resource
if devise_controller? && resource_name == :user && action_name == 'new'
"login"
else
"application"
end
end
when entering sign in or sign up information it works perfectly. but there are validation-errors on sign up, the standard application layout gets rendered. any advice what i have done wrong?
thanks!