When I log into ForestAdmin to see the database of my web app, choose a table, click to edit a record and change a field within that record, the change should be saved.
Actual behavior
When I click on save I get the following error (see below) and the change in the record doesn’t get saved.
I also have another issue that might be related to the problem. In the development environment of ForestAdmin I don’t see the last column I’ve added to the houses table. How do I get it to update itself so that shows everything according to the schema in my Rails app?
@OKMantis, I just took a look at your project and it seems that both your production and staging backends are built using forest-rails, and your development backend is built using lumber and forest-express-sequelize.
As your development project is supposed to be pushed to your production server after any addition to your project, ForestAdmin is not intended to have different backend type between your environments.
That being said, I wonder how you managed to create your project using forest-rails last October/November, and now a development environemnt using Lumber and forest-express-sequelize.
However just to answer your questions, as you made your development environment using Lumber, your schema (that populates the UI with your models) is based on the JS models defined in the models folder. It’s not at all related to your rails models. To do so, you’d need a development environment back end made with forest-rails.
It’s weird though that forest-rails is installed in my rails app. I don’t understand how there can be difference between development and staging/production.
To help you solve your problem, could you share with us the logs you have in your browser’s console dev tool? Also if you can share us, if it exists, the request of the network tab that is blocked it would help us to understand the problem.