Jyothi

ROR Developer.

Thursday, 23 August 2012

is ajax request (rails)?

if request.xhr?
  # respond to Ajax request
else
  # respond to normal request
end
Posted by Jyothi
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ▼  2012 (40)
    • ►  December (6)
    • ►  November (2)
    • ►  October (2)
    • ►  September (5)
    • ▼  August (14)
      • simplest way to comment in rhtml
      • know the controller and action in view
      • Create a New app Using Mongo db
      • Mongoid::Paperclip
      • Mongo Restart/connection failure ?
      • Gem File and Gem Lock file
      • is ajax request (rails)?
      • ajax->success(), complete() methods difference
      • Difference between Rails 2.3 and 3
      • JSON
      • Polymorphic Associations
      • What and Why Mongo DB?
      • Ruby and Rails
      • Difference between collect and collect!
    • ►  July (1)
    • ►  June (10)

Labels

jQuery (1) Mongodb (6) Rails (6)

Pages

  • Home
All Rights are Reserved to "Jyothi". Awesome Inc. theme. Powered by Blogger.