diff --git a/config/routes.rb b/config/routes.rb index 1f08c77..abf326b 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -34,13 +34,13 @@ Rails.application.routes.draw do end resources :entries do - resources :comments, only: [:create] + resources :comments, only: [ :create ] collection do get :download end end resources :suggested_meanings - resources :comments, only: [:create, :update, :destroy] - resources :supported_languages, only: [:index, :show] + resources :comments, only: [ :create, :update, :destroy ] + resources :supported_languages, only: [ :index, :show ] resources :users end diff --git a/db/migrate/20260122123822_create_suggested_meanings.rb b/db/migrate/20260122123822_create_suggested_meanings.rb index bced4ba..117c41b 100644 --- a/db/migrate/20260122123822_create_suggested_meanings.rb +++ b/db/migrate/20260122123822_create_suggested_meanings.rb @@ -18,6 +18,5 @@ class CreateSuggestedMeanings < ActiveRecord::Migration[8.1] t.timestamps end - end end diff --git a/test/models/comment_test.rb b/test/models/comment_test.rb index ff69869..4fea4fa 100644 --- a/test/models/comment_test.rb +++ b/test/models/comment_test.rb @@ -37,5 +37,4 @@ class CommentTest < ActiveSupport::TestCase comment = Comment.new(user: user, body: "This is a comment.", language: language) assert_not comment.valid? end - end