-
Notifications
You must be signed in to change notification settings - Fork 6
Provider model implementation #43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
a018b5c to
be1e9ab
Compare
| class ProvidersController < ApplicationController | ||
| before_action :set_provider, only: %i[ show edit update destroy ] | ||
|
|
||
| # GET /providers |
There was a problem hiding this comment.
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.
app/views/layouts/_sidebar.html.erb
Outdated
|
|
||
| <li class="sidebar-item "> | ||
| <a href="table.html" class='sidebar-link'> | ||
| <a href="<%= providers_path %>" class='sidebar-link'> |
There was a problem hiding this comment.
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 %>
spec/requests/providers_spec.rb
Outdated
| @@ -0,0 +1,146 @@ | |||
| require "rails_helper" | |||
|
|
|||
| # This spec was generated by rspec-rails when you ran the scaffold generator. | |||
There was a problem hiding this comment.
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.
* main: Provider model implementation (#43)
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
Additional Comments