-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix routes and configure logout button
- Loading branch information
1 parent
541fa63
commit 41694ed
Showing
5 changed files
with
55 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<h1 class="title is-6">Hello, Rails!</h1> | ||
<p class="subtitle">Find me in app/views/welcome/index.html.erb</p> | ||
<h1>Falta arrumar o botão de sair qnd estiver logado, bloquear criação de livros para quem não é admin</h1> | ||
<ul> | ||
|
||
<li>Falta adicionar role de admin no User e bloquear adição de livro se o user não for admin</li> | ||
<li>Adicionar perfil e informações do perfil no User</li> | ||
<li>Adicionar tabela de estante, cada user tem uma estante, onde vai ficar registrado qnd os livros vão ser emprestados</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
Rails.application.routes.draw do | ||
devise_for :users, controllers: { | ||
sessions: 'users/sessions' | ||
} | ||
devise_for :users | ||
|
||
devise_scope :user do | ||
get '/users/sign_out' => 'devise/sessions#destroy' | ||
end | ||
|
||
get 'welcome/index' | ||
get "up" => "rails/health#show", as: :rails_health_check | ||
resources :books | ||
|
||
|
||
root 'welcome#index' | ||
end |