Forum: Ruby on Rails ajax requests

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.
john (Guest)
on 2007-03-05 14:14
 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"}
  Site Columns (0.000000)   SHOW FIELDS FROM
sites
  Site Load (0.016000)   SELECT * FROM sites WHERE
(sites.`domain` = 'localhost' ) LIMIT 1
  Site Load (0.000000)   SELECT * FROM sites WHERE
(sites.`domain` = 'confabb.com' ) LIMIT 1
  Review Load (0.000000)   SELECT * FROM reviews ORDER
BY created_at desc LIMIT 4
  User Load (0.015000)   SELECT * FROM users WHERE
(last_name like 'k%') 
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=se...]
  User Columns (0.016000)   SHOW FIELDS FROM users
  Role Columns (0.015000)   SHOW FIELDS FROM
roles


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"}
  Site Columns (0.000000)   SHOW FIELDS FROM sites
  Site Load (0.000000)   SELECT * FROM sites WHERE
(sites.`domain` = 'localhost' ) LIMIT 1
  Site Load (0.000000)   SELECT * FROM sites WHERE
(sites.`domain` = 'confabb.com' ) LIMIT 1
  Review Load (0.000000)   SELECT * FROM reviews
ORDER BY created_at desc LIMIT 4
  User Load (0.000000)   SELECT * FROM users WHERE
(users.id = '40') LIMIT 1
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&formnam...]



  thanks in advance


  regards

  john
Gregory S. (Guest)
on 2007-03-05 15:14
(Received via mailing list)
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
john (Guest)
on 2007-03-06 06:44
 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
Gregory S. (Guest)
on 2007-03-06 15:11
(Received via mailing list)
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
This topic is locked and can not be replied to.