Coder Social home page Coder Social logo

Comments (4)

acesuares avatar acesuares commented on August 31, 2024

Yes, going back to

gem 'jquery-rails', '2.02' 

fixes this issue by going back to jQuery 1.7.2

from remotipart.

JangoSteve avatar JangoSteve commented on August 31, 2024

This should work now with jquery-rails 2.2.x in remotipart v1.0.3.

from remotipart.

shekibobo avatar shekibobo commented on August 31, 2024

Was there anything in particular that solved this issue? I'm running Rails 3.2.13, jquery-rails 2.3.0, and remotipart 1.0.5, and I'm seeing this on my staging server. It seems to run just fine in my local development server. Despite everything from the headers, payload, whatever being the same on both environments, it works as js on my local, and html on my staging environment. When I don't handle html requests in my controller, I get a 406 response, and when I handle the html, it sends back the rendered page as ajax data...I think...

from remotipart.

gauravpant99 avatar gauravpant99 commented on August 31, 2024

I am facing a similar kind of problem where the same code is working fine in staging but not working in production .Both environment has same gems installed . I am using a rails version 3.0.10.

In production , the GET request is processes as a html but in staging it is processed as js .I have defined the respond_to for js format . I am no sure the reason for the same .
Also I have tried adding the defaults format as js in the routes.rb but that also is not working.

Below is the log for production and staging .

Production :

Started GET "/releases/cycle_paginate/2?id=4" for 10.30.10.67 at Wed Aug 14 07:13:45 -0400 2013
Processing by ReleasesController#cycle_paginate as JS
Parameters: {"id"=>"4", "page"=>"2"}

Staging :

Started GET "/releases/cycle_paginate/2?id=53" for 10.30.10.67 at Wed Aug 14 06:42:45 -0400 2013
Processing by ReleasesController#cycle_paginate as HTML
Parameters: {"id"=>"53", "page"=>"2"}

Appreciate if any one have a clue on this .

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.