Skip to content

Conversation

@hydrognomik
Copy link
Collaborator

What Issue Does This PR Cover, If Any?

Resolves #14

What Changed? And Why Did It Change?

How Has This Been Tested?

Please Provide Screenshots

afbeelding

Additional Comments

@hydrognomik hydrognomik linked an issue Feb 4, 2025 that may be closed by this pull request
6 tasks
Introduced the Provider model, associated views, and controller with CRUD actions. Established relationships with Branch and Region models. Added thorough tests for the functionality and updated routes and layouts for navigation.
@hydrognomik hydrognomik force-pushed the 14-provider-model-implementation branch from a018b5c to be1e9ab Compare February 4, 2025 12:51
class ProvidersController < ApplicationController
before_action :set_provider, only: %i[ show edit update destroy ]

# GET /providers
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably remove all the comments out of here.


<li class="sidebar-item ">
<a href="table.html" class='sidebar-link'>
<a href="<%= providers_path %>" class='sidebar-link'>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should do this as a link_to as it will be more "rails-y" something like:

<%= link_to providers_path, class: 'sidebar-link' do %>
  <i class="bi bi-hospital-fill"></i>
  <span>Providers</span>
<% end %>

@@ -0,0 +1,146 @@
require "rails_helper"

# This spec was generated by rspec-rails when you ran the scaffold generator.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should remove the comments from here.

@seanmarcia seanmarcia merged commit a4d3af3 into main Feb 4, 2025
4 checks passed
dmitrytrager added a commit that referenced this pull request Feb 4, 2025
* main:
  Provider model implementation (#43)
@dmitrytrager dmitrytrager deleted the 14-provider-model-implementation branch February 13, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provider Model Implementation

3 participants