Add projects
Some checks failed
CI / scan_ruby (push) Has been cancelled
CI / scan_js (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
CI / system-test (push) Has been cancelled

This commit is contained in:
2025-10-27 12:18:14 +01:00
parent 6776729eab
commit 0dc4dd623d
11 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
class ProjectsController < ApplicationController
def index
@projects = Project.all
end
def show
@project = Project.find(params[:id])
end
end

View File

@@ -0,0 +1,2 @@
module ProjectsHelper
end

2
app/models/project.rb Normal file
View File

@@ -0,0 +1,2 @@
class Project < ApplicationRecord
end

View File

@@ -0,0 +1,5 @@
<h1>Projects</h1>
<% @projects.each do |project| %>
<li><%= link_to project.name, project_path(project) %></li>
<% end %>

View File

@@ -0,0 +1,2 @@
<h1><%= @project.name %></h1>
<%= link_to "Back", projects_path %>