Comments (5)
This change is probably unwanted, since of:
Inherited Resources is no longer actively maintained by the original author and has been transferred to the ActiveAdmin organization for maintenance. New feature requests are not encouraged.
from inherited_resources.
Oh fuck
from inherited_resources.
Is this really a feature request? Returning a 200 after what is essentially a failed request could be seen as a bug.
As ActiveAdmin is in a period of more active development, I would think that a solution that properly works with Turbo is important.
I used to add data-turbo: false all over the place. After some investigation and seeing the connected PR, it could be solved by an initializer with:
InheritedResources::Responder.error_status = :unprocessable_entity
So, if not actually wanted in InheritedResources, that line could be part of ActiveAdmin. It would still be a shame, no?
from inherited_resources.
In the past it was the expected behaviour to return status 200 and render :new or :edit templates. But yes with turbo this behaviour is not working anymore.
from inherited_resources.
Returning a 200 after what is essentially a failed request could be seen as a bug.
I do agree
I would think that a solution that properly works with Turbo is important.
This is still not clear for me. Since Active Admin has its own js
file and does not support turbo, I don't know how turbo is being enabled in Active Admin. My guesses are
A. Navigating from the application to the admin area without turbo: false
?
B. Application JS is being loaded inside the admin area?
C. Other?
I used to add
data-turbo: false
all over the place.
This makes me think to Scenario A, but I'm not sure why it should be all over the place
About Scenario B, I don't know if it is a good practice to load application JS inside the admin Area
from inherited_resources.
Related Issues (20)
- how to include nested has_many association
- Drop support for Rails 4.2
- Maintaining has_scope and responders dependencies HOT 3
- Unable to autoload constant Base HOT 2
- update_attributes is deprecated in Rails 6
- Infinite loop if resource is called resource HOT 1
- Dependabot couldn't find a gems.rb for this project
- Dependabot couldn't find a gems.rb for this project
- Method missing crash due to duck typing in UrlHelper HOT 1
- Add an option to provide another superclass other than ApplicationController
- Breaking change in Rails 5.2.4.6 HOT 3
- How to use UrlHelpers outside of ApplicationController?
- `param` is not working with `belongs_to`
- Release a gem that supports rails 7 HOT 2
- Need to support ruby 3.2
- Tidelift badge and link do not work anymore
- Route-aware resource_path?
- Providing optional: true and shallow: true together produces an error
- Mocha deprecations in tests 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 inherited_resources.