# Ajax requests

**URL:** <https://www.ruby-forum.com/t/ajax-requests/87709>\
**Category:** Rails\
**Created:** [March 5, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/ajax-requests/87709 "2007-03-05T13:14:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 5, 2007, 1:14pm UTC](https://www.ruby-forum.com/t/ajax-requests/87709/1 "2007-03-05T13:14:10Z")

</div>

every ajax request is written to the log file?  
can anyone help me in this regard?

Processing HomeController#get\_speakers (for 127.0.0.1 at 2007-03-05  
13:04:56) [POST]  
Session ID: 814981131b5955eb11b7a0dfa8d100a1  
Parameters: {“x”=\>“1”, “action”=\>“get\_speakers”, “lastname”=\>“k”,  
“controller”=\>“home”, “formname”=\>“sessions”,  
“fieldname”=\>“speakermatchfield1”}  
e[4;36;1mSite Columns (0.000000)e[0m e[0;1mSHOW FIELDS FROM  
sitese[0m  
e[4;35;1mSite Load (0.016000)e[0m e[0mSELECT \* FROM sites WHERE  
(sites.`domain` = ‘localhost’ ) LIMIT 1e[0m  
e[4;36;1mSite Load (0.000000)e[0m e[0;1mSELECT \* FROM sites WHERE  
(sites.`domain` = ‘[confabb.com](http://confabb.com)’ ) LIMIT 1e[0m  
e[4;35;1mReview Load (0.000000)e[0m e[0mSELECT \* FROM reviews ORDER  
BY created\_at desc LIMIT 4e[0m  
e[4;36;1mUser Load (0.015000)e[0m e[0;1mSELECT \* FROM users WHERE  
(last\_name like ‘k%’) e[0m  
Rendering home/get\_speakers  
Completed in 0.09400 (10 reqs/sec) | Rendering: 0.03200 (34%) | DB:  
0.06200 (65%) | 200 OK  
[[http://localhost/home/get\_speakers?x=1&formname=sessions&fieldname=speakermatchfield1](http://localhost/home/get_speakers?x=1&formname=sessions&fieldname=speakermatchfield1)]  
e[4;35;1mUser Columns (0.016000)e[0m e[0mSHOW FIELDS FROM userse[0m  
e[4;36;1mRole Columns (0.015000)e[0m e[0;1mSHOW FIELDS FROM  
rolese[0m

Processing HomeController#get\_speakernames (for 127.0.0.1 at 2007-03-05  
13:04:59) [POST]  
Session ID: 814981131b5955eb11b7a0dfa8d100a1  
Parameters: {“x”=\>“1”, “action”=\>“get\_speakernames”, “id”=\>“40”,  
“controller”=\>“home”, “formname”=\>“sessions”,  
“fieldname”=\>“speakername1”}  
e[4;35;1mSite Columns (0.000000)e[0m e[0mSHOW FIELDS FROM sitese[0m  
e[4;36;1mSite Load (0.000000)e[0m e[0;1mSELECT \* FROM sites WHERE  
(sites.`domain` = ‘localhost’ ) LIMIT 1e[0m  
e[4;35;1mSite Load (0.000000)e[0m e[0mSELECT \* FROM sites WHERE  
(sites.`domain` = ‘[confabb.com](http://confabb.com)’ ) LIMIT 1e[0m  
e[4;36;1mReview Load (0.000000)e[0m e[0;1mSELECT \* FROM reviews  
ORDER BY created\_at desc LIMIT 4e[0m  
e[4;35;1mUser Load (0.000000)e[0m e[0mSELECT \* FROM users WHERE  
(users.id = ‘40’) LIMIT 1e[0m  
Rendering home/get\_speakernames  
Completed in 0.10900 (9 reqs/sec) | Rendering: 0.03100 (28%) | DB:  
0.03100 (28%) | 200 OK  
[[http://localhost/home/get\_speakernames?x=1&formname=sessions&fieldname=speakername1](http://localhost/home/get_speakernames?x=1&formname=sessions&fieldname=speakername1)]

thanks in advance

regards

john

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 5, 2007, 2:14pm UTC](https://www.ruby-forum.com/t/ajax-requests/87709/2 "2007-03-05T14:14:32Z")

</div>

On Mon, Mar 05, 2007 at 01:14:10PM +0100, john wrote:

> every ajax request is written to the log file?

Yes.

> can anyone help me in this regard?  
> […]  
> thanks in advance

This is correct behavior. What do you need help with?

> regards  
> john  
> –Greg

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 6, 2007, 5:44am UTC](https://www.ruby-forum.com/t/ajax-requests/87709/3 "2007-03-06T05:44:26Z")

</div>

but it’s written to the production log file  
the client says he can see the request?  
and he doesn’t want to see the request

greg

please explain me in brief

---

<div class="post-metadata">

**Author:** ![john\_old](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/9f8e36/32.png) [@john\_old](https://www.ruby-forum.com/u/john_old)\
**Post date:** [March 6, 2007, 2:11pm UTC](https://www.ruby-forum.com/t/ajax-requests/87709/4 "2007-03-06T14:11:56Z")

</div>

On Tue, Mar 06, 2007 at 05:44:26AM +0100, john wrote:

> but it’s written to the production log file

Yes. Again, this is correct behavior.

> the client says he can see the request?

In the log file, as expected? Or in some other way?

> and he doesn’t want to see the request

Sounds like you need to change the logger configuration. Look at the  
config/environment.rb and config/environments/production.rb files to set  
things up the way you want them.

> greg
> 
> please explain me in brief

It is clear that English is not your native language, for which I will  
make  
allowances. Even so, you aren’t really asking questions or giving enough  
information to get the help you seem to need. I can make guesses about  
what  
you’re trying to do, but they are just guesses.

Worse, the impression I’m getting is that you are selling services based  
on  
your Rails expertise without having actually learned the basics of how  
to  
develop with it. I hope I’m wrong about that and it’s just a language  
problem, but if I’m right then you are doing a disservice to every  
competent Rails contractor out there by attempting to sell something you  
can’t deliver.

–Greg
