Comments (11)
from forest-rails.
Edit: now half-works... I restarted my rails server (puma) and it started working well. Some tries later it stopped working (and no code modified).
from forest-rails.
I think I'm close to be able to reproduce it every time. It lookalike it behave as such:
rails s
- open forest interface
- click collections
- pick selection
- select row
- click on action
- -> fails
cmd
+c
to stop server- click on action again (As you see, didn't change page or anything)
- action works
- it refreshes the data
- click on action again
- -> fails
cmd
+c
to stop server- click on action again (As you see, didn't change page or anything)
- action works
- ... etc
It might be a problem because of another (auto-loading or other) gem? Below my Gemfile
source 'https://rubygems.org'
ruby "2.4.1"
# Core
gem 'rails', '~> 5.1.2'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'coffee-rails', '~> 4.2'
gem 'uglifier', '>= 1.3.0'
gem 'turbolinks', '~> 5'
gem 'json'
gem 'bcrypt'
gem 'pg'
# Front End
gem 'jquery-rails', '~> 4.3.1'
gem 'modernizr-rails'
gem 'will_paginate'
gem 'bootstrap', '~> 4.0.0.beta2.1'
# Admin dasjboard
gem 'forest_liana'
# Backend
gem 'nokogiri'
gem 'sidekiq'
gem 'httparty'
group :development do
gem 'dotenv-rails'
gem 'better_errors'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production, :staging do
gem 'rack-timeout'
gem 'newrelic_rpm'
end
from forest-rails.
Any idea about the problem?
from forest-rails.
Anyone still alive here? Any thoughts on this? Anyone else having this issue or able to reproduce it?
from forest-rails.
Hi @daniel-costa,
I guess the error you have happens a this specific line:
puts Venues.all
Because you're in the Forest::VenuesController
Am I right?
Maybe ::Venues.all
could fix the issue?
from forest-rails.
from forest-rails.
If you're using Puma, it might be an issue with Forest support of multithreading in development environment.
Did you try to deploy this code in a staging/production environment? My guess is that it could work perfectly in such non-development environment. (Even though, it remains an issue that should be fixed in development environment.)
from forest-rails.
from forest-rails.
Still no solution here?
from forest-rails.
Can you try:
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = true
# Do not eager load code on boot.
config.eager_load = true
to see if it improve things.
from forest-rails.
Related Issues (20)
- rails g forest_liana:install crash HOT 16
- The automated release is failing 🚨
- Rails autoloading usage deprecation
- Server crashed in production when defining an action with a specific endpoint
- ActionController::InvalidAuthenticityToken when using hooks
- Missing httpclient dependency? causing server crash HOT 3
- Cannot drop db with Ruby 3.1.3 version
- Multi select delete issue. if i remove an element it removes 2 elements from the list
- [Feature request] Testing against multiple Ruby/Rails versions
- How do I stop the ForestAdmin Background Process HOT 4
- Issue with backslash on forestadmin-schema.json HOT 1
- Notification when overriding a default route HOT 1
- How do you run specs on ForestLiana collections and controllers ? HOT 1
- Associations with restrict_with_error not handled properly HOT 3
- Invalid smart_action_id requirement
- Fails under Rails 7.1 : logger.rb:18:in `to_s': wrong number of arguments HOT 7
- Upgrade from v7.2.1 to v8.0.17 failed HOT 1
- Question about polymorphic associations support HOT 2
- Usage of rails secrets raises deprecation warnings on Rails 7.1+ HOT 2
- Unable to create record with polymorphic field HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forest-rails.