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

Explain me what is the purpose of rjs in rails?

494


Explain how Rails implements Ajax?

480


Mention all the naming conventions in ruby on rails.

479


Name some rails ide or editor.

488


what is the command to create a migration?

535






what is Polymorphic Association in Ruby on Rails?

505


Tell me what is the function of garbage collection in ruby on rails?

495


Choosing between belongs_to and has_one?

494


How are string and symbol different?

499


how does ruby on rails use the model view controller (mvc) framework?

451


Explain me what is the naming convention in rails?

444


Explain me what is the role of rails controller?

491


Explain how does rails implement ajax?

543


what is the difference in scope for these two variables: @@name and @name?

462


What is the purpose of load in ruby?

502