Giter Site home page Giter Site logo

Comments (5)

a-nickol avatar a-nickol commented on June 16, 2024

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.

andriytyurnikov avatar andriytyurnikov commented on June 16, 2024

Oh fuck

from inherited_resources.

caifara avatar caifara commented on June 16, 2024

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.

a-nickol avatar a-nickol commented on June 16, 2024

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.

tagliala avatar tagliala commented on June 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.