Parameter URL in Ajax of jquery

I am always wondering where the request will be sent after calling ajax; i.e., after the ajax action, what controller/action in Rails will be called.

see

jQuery.ajax( url [, settings] )

urlString
Default: The current page

A string containing the URL to which the request is sent.

when calling ajax, url is a string the request going to. When there is no value, it will be the current page by default.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s