Skip to content

Add My ratings overview page#16

Merged
ddbrendan merged 12 commits into
mainfrom
ratings-overview
Jun 26, 2026
Merged

Add My ratings overview page#16
ddbrendan merged 12 commits into
mainfrom
ratings-overview

Conversation

@ddbrendan

Copy link
Copy Markdown
Collaborator
image

Will also add pagination soon. I was also thinking about adding a button here to enter the Karteikarten mode so the user can go through each of his ratings one by one and update them if needed. What do you think?

@ddbrendan ddbrendan requested a review from rnestler June 19, 2026 11:19
@ddbrendan ddbrendan self-assigned this Jun 19, 2026
Comment thread config/routes.rb Outdated
Comment on lines +8 to +10
get 'tech_radar/ratings', to: 'tech_radar_ratings#index', as: :tech_radar_ratings
patch 'tech_radar/ratings/:technology_id',
to: 'tech_radar_ratings#save', as: :save_tech_radar_rating

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Use the regular CRUD routes (as you already do below) instead of inventing your own index:
https://guides.rubyonrails.org/getting_started.html#crud-routes

@@ -4,22 +4,33 @@ class TechRadarRatingsController < ApplicationController

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Probably makes sense to rename this to TechRader::RatingsController and then consequently use tech_radar/rating routes.

@ddbrendan ddbrendan force-pushed the ratings-overview branch 2 times, most recently from 825e027 to ae2278b Compare June 24, 2026 07:47
@ddbrendan ddbrendan requested a review from rnestler June 24, 2026 07:58
Comment thread config/routes.rb Outdated
Comment on lines +8 to +17
namespace :tech_radar do
resources :ratings, only: [:index], param: :technology_id do
patch :save, on: :member
end
end

resource :tech_radar_rating,
only: [:show, :update],
path: 'tech_radar/rate',
controller: 'tech_radar_ratings' do
controller: 'tech_radar/ratings' do

@rnestler rnestler Jun 25, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

And now put all routes in the ratings resource above. (Also the two posts below o.c.)

@ddbrendan ddbrendan requested review from firemind and rnestler June 25, 2026 15:01
Comment thread app/controllers/tech_radar/ratings_controller.rb Outdated
Comment thread app/controllers/tech_radar/ratings_controller.rb
Comment thread app/models/tech_radar/rating.rb Outdated
Comment thread app/views/tech_radar/ratings/index.html.erb Outdated
Comment thread test/system/tech_radar_system_test_case.rb Outdated
Comment thread app/controllers/tech_radar/ratings_controller.rb Outdated
@ddbrendan ddbrendan requested a review from firemind June 26, 2026 12:00
@ddbrendan ddbrendan merged commit 9c7ea81 into main Jun 26, 2026
1 check passed
@ddbrendan ddbrendan deleted the ratings-overview branch June 26, 2026 12:17
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.

3 participants