Forum: Ruby on Rails Ajax request executing well on localhost but not on server

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2009-04-04 17:38
(Received via mailing list)
I have an Ajax request from a form

<form class="non_tabular" onsubmit="new Ajax.Request('/intranet-dev/
welcome/infos_send', {asynchronous:true, evalScripts:true,
parameters:Form.serialize(this)}); return false;" method="post"
action="/intranet-dev/welcome/infos_send">
<!--[form:user]-->

it executes well in dev n locahost... (mongrel) and on local Apache
server (http://aelmat.local)
but it's not executing when running on remote host server

what could be the issue ? where should I look for ?

erwin
81b61875e41eaa58887543635d556fca?d=identicon&s=25 Frederick Cheung (Guest)
on 2009-04-04 18:12
(Received via mailing list)
On Apr 4, 4:37 pm, Erwin <yves_duf...@mac.com> wrote:
> but it's not executing when running on remote host server
>
> what could be the issue ? where should I look for ?

In what way is it not working ? (the response contains an error, the
request is garbled, the request never makes it to rails, it never
makes a request at all, etc. )

Fred
Ee0293412faca21e4ebf3326ed9d5f8c?d=identicon&s=25 Kad Kerforn (kadoudal)
on 2009-04-04 19:33
(Received via mailing list)
sorry, Fred , I   was a little bit lost
 I have 2 ajax forms almost identical, one is running well , not the
second one....and I was looking into the wrong development log....
(deployment is sometimes a little bit confusing, even with Capistrano
( different settings... staging, production, ... )

finally I got the right log.. & discover the error ...    a  "
scoped_by_ "   =>  used in 2.3.2 locally ...
my 'staging' environment.rb  was still using 2.2.2    !!

thanks for asking questions that make me thinking a little bit
more ...

erwin
This topic is locked and can not be replied to.