I have forest working locally in development no problem. However in our deployed instance Forest keeps returning the following errors: No model found for collection [name of model]
I’m not sure why it would work locally but not on our deployed staging instance. It is able to grab our .forestschema and display it in the UI, but for some reason and cannot grab our model data. What’s going on?
Expected behavior
I would expect it to load our models
Actual behavior
Cannot find models
Failure Logs
1:56:28 rails.1 | [2021-08-03 11:56:28] Forest 🌳🌳🌳 No model found for collection Company
11:56:28 rails.1 | [2021-08-03 11:56:28] Forest 🌳🌳🌳 Routing error: Resource not found for collection Company.
11:56:28 rails.1 | [2021-08-03 11:56:28] Forest 🌳🌳🌳 If this is a Smart Collection, please ensure your Smart Collection routes
are defined before the mounted ForestLiana::Engine?
11:56:28 rails.1 | I, [2021-08-03T11:56:28.360107 #37] INFO -- : [7d97a688-efd7-44f3-bde9-f39c78b0ca74] Processing by ForestLian
a::BaseController#route_not_found as JSON
11:56:28 rails.1 | I, [2021-08-03T11:56:28.360270 #37] INFO -- : [7d97a688-efd7-44f3-bde9-f39c78b0ca74] Parameters: {"timezone
"=>"Europe/Lisbon", "fields"=>{"Company"=>"company_type,created_at,id,name,platform,platform_id,updated_at", "platform"=>"id"}, "pa
ge"=>{"number"=>"1", "size"=>"15"}, "searchExtended"=>"0", "sort"=>"-id", "collection"=>"Company"}
11:56:28 rails.1 | I, [2021-08-03T11:56:28.361131 #37] INFO -- : [7d97a688-efd7-44f3-bde9-f39c78b0ca74] Completed 404 Not Found
in 1ms (Allocations: 198)
11:56:28 rails.1 | I, [2021-08-03T11:56:28.508725 #37] INFO -- : [6f5278ea-7269-473d-94ea-221f6529f5b0] Started GET "/forest/Com
pany/count?fields%5BCompany%5D=company_type%2Ccreated_at%2Cid%2Cname%2Cplatform%2Cplatform_id%2Cupdated_at&fields%5Bplatform%5D=id&
searchExtended=0&timezone=Europe%2FLisbon" for 142.250.200.148 at 2021-08-03 11:56:28 +0000
Context
Please provide any relevant information about your setup.
Rails 6.1.4
- Package Version: 7.0.0
- Database Dialect: PSQL
- Database Version: 13
- Project Name: Collider