Coder Social home page Coder Social logo

js.erb never executed? about remotipart HOT 5 CLOSED

jangosteve avatar jangosteve commented on July 26, 2024
js.erb never executed?

from remotipart.

Comments (5)

digerata avatar digerata commented on July 26, 2024

Digging in, it appears the response back to the client is never wrapped in a <textarea> tag. Instead, the content is wrapped:

<head></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;"> // ... My rendered JS </pre></body>

This is using 1.0.2 of remotipart and 1.7.1 of jquery. Rails is 3.2.11.

Any ideas?

from remotipart.

digerata avatar digerata commented on July 26, 2024

It appears that the render method from the render_overrides mixin is never called in my situation. I forked the project and put in some debug statements all over the place. The custom render isn't called. So the response is never wrapped in a textarea. Still no idea why.

from remotipart.

znz avatar znz commented on July 26, 2024

I have met similar issue with wicked_pdf.
mileszs/wicked_pdf#182

I do not know best way to resolve it.

from remotipart.

JangoSteve avatar JangoSteve commented on July 26, 2024

Hey Mike, thanks for looking into this. I don't know off-hand why it's not being called. I've been really busy lately and have not yet updated and run the tests for Rails 3.2.

Because this gem uploads files via ajax, I can't just have a qunit or jasmine test, I have to run tests in the browser with capybara in an app context. So, that sample app with tests is here:
https://github.com/JangoSteve/Rails-jQuery-Demo/tree/remotipart-rails-3-1

When I get a chance, I'll update the app to rails 3.2 and run the specs and see what fails.

from remotipart.

JangoSteve avatar JangoSteve commented on July 26, 2024

This should be fixed now in remotipart v1.0.5.

from remotipart.

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.