Skip to content
This repository has been archived by the owner on Jul 2, 2021. It is now read-only.

Relative url root #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alexkutzke
Copy link

Veja o que acha.

A princípio, não altera o funcionamento atual da ferramenta. Apenas liberei a matrícula em turmas.
Talvez isso seja um problema no DINF.

@@ -17,4 +17,24 @@ def configure_permitted_parameters
devise_parameter_sanitizer.permit(:sign_up, keys: [:name, :teacher])
devise_parameter_sanitizer.permit(:account_update, keys: [:name])
end

def after_update_path_for(resource)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

É possível melhorar esses redirecionamentos.
Estão mal feitos assim, porque tive que fazer para funcionar logo.

Inclusive, o after_update_path, nem precisa mais estar aqui.

Copy link
Owner

@rwehresmann rwehresmann Sep 16, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por que precisamos desses redirecionamentos? Dessa forma, se rodamos a ferramenta na máquina local, não funciona (tenta redirecionar para //). O erro ocorre pela concatenação do root_path com /, mantendo apenas o root_path funciona.

Também, qual a ideia por trás do authenticate_user!? Me parece que o método está fazendo a mesma coisa que a "versão default" dele no devise.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants