Skip to content

Commit

Permalink
Remove instance variable not used
Browse files Browse the repository at this point in the history
  • Loading branch information
eltonsantos committed Oct 22, 2024
1 parent d27a082 commit 639f918
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions app/controllers/charts_controller.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
class ChartsController < ApplicationController
def index
@tarefa = Task.first
render partial: 'charts/index'
end
end
8 changes: 1 addition & 7 deletions app/views/charts/_index.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1 @@
<h2>Conteúdo da Segunda Aba</h2>
<p>Esta é a view renderizada pelo ChartsController.</p>

<%= tarefa.title %>
<%= tarefa.description %>
<%= tarefa.category.name %>
<%= tarefa.hours %>
<h2>Conteúdo da Segunda Aba</h2>

0 comments on commit 639f918

Please sign in to comment.