Why do we use request.xhr? in rails

Answer Posted / surekha matte

request.xhr? indicates the controller has
received an ajax request. It returns true or false

Is This Answer Correct ?    71 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to use two databases into a single application?

496


What are models in rails?

454


Explain rvm in rails?

444


How you run your Rails Application without creating database ?

454


what is Polymorphic Association in Ruby on Rails?

489






Explain model in rails?

468


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

445


Write a program to generate and run the application without the use of database

432


what is the naming convention in Rails?

505


how many types of callbacks available in ror?

576


Explain bundler in rails.

484


Explain dry in rails?

478


What is the process for creating a controller for the subject? What is its role?

439


What is Dynamic finders ?

498


What is the latest version of ruby on rails?

495