lively-kitchen-58021
10/26/2021, 1:53 PMlively-kitchen-58021
10/26/2021, 1:53 PMlemon-wall-20836
10/26/2021, 1:53 PMlemon-wall-20836
10/26/2021, 1:53 PMquaint-pencil-2979
10/29/2021, 2:31 PMresources_library_media_index_index GET /resources/library_media_index(.:format) avo/library_media_index#index new_resources_library_media_index GET /resources/library_media_index/new(.:format) avo/library_media_index#new
Because in this line of app#draw_routes: resource.model_class.model_name.route_key
returns "library_media_index" and should returns library_media
we have added:
inflect.uncountable 'library_media'
to inflections.rblemon-wall-20836
10/29/2021, 2:35 PMquaint-pencil-2979
10/29/2021, 2:35 PMlemon-wall-20836
10/29/2021, 2:36 PMlibrary_media_item
(even the rails docs mention something about naming models)lemon-wall-20836
10/29/2021, 2:36 PMinflect.uncountable 'library_media'
it should worklemon-wall-20836
10/29/2021, 2:36 PMlemon-wall-20836
10/29/2021, 2:36 PMquaint-pencil-2979
10/29/2021, 2:37 PMquaint-pencil-2979
10/29/2021, 2:37 PMlemon-wall-20836
10/29/2021, 2:37 PMlemon-wall-20836
10/29/2021, 2:37 PMquaint-pencil-2979
10/29/2021, 2:38 PMLibraryMediaResource.model_class.model_name.route_key,
should returns library_media_index or library_media?lemon-wall-20836
10/29/2021, 2:38 PMlibrary_media
lemon-wall-20836
10/29/2021, 2:38 PMlemon-wall-20836
10/29/2021, 2:39 PMlibrary_media
I thinkhelpful-microphone-19711
10/29/2021, 2:42 PMlemon-wall-20836
10/29/2021, 2:44 PMCONSTRIBUTING.MD
filelemon-wall-20836
10/29/2021, 2:46 PMcp spec/dummy/.env.sample spec/dummy/.env
3. docker-compose up
for the database
4.RAILS_ENV=test bin/rails db:setup
5. rake test
to run testslemon-wall-20836
10/29/2021, 2:46 PMAVO_ADMIN_PASSWORD=secret bin/rails db:seed
to seed the DB for developmentlemon-wall-20836
10/29/2021, 2:47 PMhelpful-microphone-19711
10/29/2021, 2:51 PMquaint-pencil-2979
10/29/2021, 2:57 PMlemon-wall-20836
10/29/2021, 2:57 PMlemon-wall-20836
10/29/2021, 2:58 PMlemon-wall-20836
10/29/2021, 2:59 PMlemon-wall-20836
10/29/2021, 2:59 PM