Skip to content

Commit

Permalink
Add scaffold for "My Tasks" view
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolachr committed Aug 12, 2024
1 parent 5ed0b25 commit 88a624a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 6 additions & 0 deletions app/controllers/tasks_controller.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class TasksController < AuthenticatedController
include ProjectScoped
layout 'tylium'
def index; end
end

5 changes: 5 additions & 0 deletions app/views/tasks/index.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<% content_for :title, 'My Tasks' %>

<div class="content-container mt-3">
<h1>Edit me in app/views/tasks/index.html.erb</h1>
</div>
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@

resources :tags, except: [:show]

resources :tasks, only: :index

namespace :qa do
resources :issues, only: [:edit, :index, :show, :update], concerns: [:multiple_update, :previewable]
end
Expand Down
8 changes: 4 additions & 4 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 88a624a

Please sign in to comment.