-
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.
- Loading branch information
1 parent
17a16cb
commit bc906d3
Showing
5 changed files
with
74 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
class ApplicationController < ActionController::Base | ||
|
||
private | ||
|
||
def serialize(resource, serializer_class) | ||
|
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import React from "react"; | ||
|
||
const TodosShow = ({todo}) => { | ||
|
||
return ( | ||
<div className="container px-4 mx-auto pt-26"> | ||
<div className="flex justify-between"> | ||
<h1 className="text-3xl font-bold underline"> | ||
Tarefa {todo.name} | ||
</h1> | ||
</div> | ||
|
||
<div className="pt-2"> | ||
<p className="font-bold"> | ||
Criado em: {todo.created_at} | ||
</p> | ||
<p className="font-bold"> | ||
Atualizado em: {todo.updated_at} | ||
</p> | ||
</div> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default TodosShow; |
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,5 +1,5 @@ | ||
Rails.application.routes.draw do | ||
resources :todos | ||
resources :todos, except: [:new, :edit] | ||
|
||
root "todos#index" | ||
end |