1.

Write A Program To Show The Functionality Of Request.xhr In Ruby On Rails ?

Answer»

Request from the request.xhr DISPLAYS the controller that manages and creates the new AJAX that is being handled by the new controller.

The BOOLEAN values that are retured should GENERATE only TRUE or FALSE. These values are USED to be inserted for this purpose.

The request.xhr is being shown in a program shown below as:

DEF create return unless request.xhr? @imageable = find_imageable @image = @imageable.images.build(params[:imageable]) @image.save render :layout => false end

Request from the request.xhr displays the controller that manages and creates the new AJAX that is being handled by the new controller.

The Boolean values that are retured should generate only TRUE or FALSE. These values are used to be inserted for this purpose.

The request.xhr is being shown in a program shown below as:



Discussion

No Comment Found